Skip to main content

Interface: TokenPolicyLike

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

Methods​

id()​

id(): ObjectIdLike;

The object's ID.

Returns​

ObjectIdLike


rules()​

rules(): Map<string, string[]>;

Fully-qualified type names of the rules attached to each action, keyed by action name.

Returns​

Map<string, string[]>


spentBalance()​

spentBalance(): bigint;

Balance spent on the spend action, in base units.

Returns​

bigint