CCC Docs
    Preparing search index...

    Class UdtInfo

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

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Creates an instance of UdtInfo.

      Parameters

      • balance: bigint

        The total UDT balance.

      • capacity: bigint

        The total CKB capacity of the UDT cells.

      • count: number

        The number of UDT cells.

      Returns UdtInfo

    Properties

    balance: bigint

    The total UDT balance.

    capacity: bigint

    The total CKB capacity of the UDT cells.

    count: number

    The number of UDT cells.

    Methods

    • Creates a default UdtInfo instance with all values set to zero.

      Returns UdtInfo

      A new UdtInfo instance with zero balance, capacity, and count.

    • Creates a new UdtInfo instance by adding the values from another UdtInfoLike object to the current one. This method is not in-place.

      Parameters

      Returns UdtInfo

      A new UdtInfo instance with the summed values.