Readonly
model: "mint"A model identifier to distinguish models in the SDK.
Readonly
address: PublicKeyThe address of the mint account.
Readonly
mintThe address of the authority that is allowed to mint new tokens to token accounts.
When null
, no authority is ever allowed to mint new tokens.
Readonly
freezeThe address of the authority that is allowed to freeze token accounts.
When null
, no authority is ever allowed to freeze token accounts.
Readonly
decimals: numberThe number of decimal points used to define token amounts.
Readonly
supply: SplTokenAmountThe current supply of tokens across all token accounts.
Readonly
isHelper boolean to determine whether this mint account is the mint account that wraps SOL as an SPL token.
Readonly
currency: SplTokenCurrencyA currency object that can be used to create amounts representing the tokens of this mint account.
For instance, here's how you can transform an amount of token
in basis points into an Amount
object.
const tokenBasisPoints = 1000;
const tokensAsAmount = amount(tokenBasisPoints, mint.currency);
Generated using TypeDoc
This model represents a mint account.