CCC Docs
    Preparing search index...

    Class CoinInfo

    Represents aggregated information about a set of Coins. This class encapsulates the total amount, total CKB capacity, and the number of cells.

    Index
    • Creates an instance of CoinInfo.

      Parameters

      • amount: bigint

        The total Coin amount.

      • capacity: bigint

        The total CKB capacity of the Coins.

      • count: number

        The number of Coins.

      Returns CoinInfo

    amount: bigint

    The total Coin amount.

    capacity: bigint

    The total CKB capacity of the Coins.

    count: number

    The number of Coins.

    • Creates a new CoinInfo instance by subtracting the values of another CoinInfoLike object from the current one. This method is not in-place.

      Parameters

      • infoLike: CoinInfoLike

        The CoinInfoLike object to subtract.

      Returns CoinInfo

      A new CoinInfo instance with the subtracted values.