Creates an instance of CoinInfo.
The total Coin amount.
The total CKB capacity of the Coins.
The number of Coins.
The total Coin amount.
The total CKB capacity of the Coins.
The number of Coins.
StaticfromCreates a CoinInfo instance from a CoinInfoLike object.
OptionalinfoLike: CoinInfoLike
A CoinInfoLike object or an instance of CoinInfo.
A new CoinInfo instance.
StaticdefaultCreates a default CoinInfo instance with all values set to zero.
A new CoinInfo instance with zero amount, capacity, and count.
Clones the CoinInfo instance.
A new CoinInfo instance that is a copy of the current one.
Adds the values from another CoinInfoLike object to this instance (in-place).
The CoinInfoLike object to add.
The current, modified CoinInfo instance.
Creates a new CoinInfo instance by adding the values from another CoinInfoLike object to the current one.
This method is not in-place.
The CoinInfoLike object to add.
A new CoinInfo instance with the summed values.
Subtracts the values from another CoinInfoLike object from this instance (in-place).
The CoinInfoLike object to subtract.
The current, modified CoinInfo instance.
Creates a new CoinInfo instance by subtracting the values of another CoinInfoLike object from the current one.
This method is not in-place.
The CoinInfoLike object to subtract.
A new CoinInfo instance with the subtracted values.
Represents aggregated information about a set of Coins. This class encapsulates the total amount, total CKB capacity, and the number of cells.