Skip to main content

TokenProtocol

TokenProtocol Objects​

class TokenProtocol(typing.Protocol)

A typed view of an on-chain 0x2::token::Token<T> object.

balance​

def balance() -> int

The token's balance, in base units.

id​

def id() -> ObjectId

The object's ID.