Skip to main content

TreasuryCapProtocol

TreasuryCapProtocol Objects

class TreasuryCapProtocol(typing.Protocol)

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

id

def id() -> ObjectId

The object's ID.

total_supply

def total_supply() -> int

Total supply of the coin currently in circulation, in base units.