Skip to main content

TreasuryCapInterface

type TreasuryCapInterface

A typed view of an on-chain `0x2::coin::TreasuryCap<T>` object, the capability controlling a coin type's supply.

type TreasuryCapInterface interface {
// The object's ID.
Id() *ObjectId
// Total supply of the coin currently in circulation, in base units.
TotalSupply() uint64
}