Readonly
model: "token"A model identifier to distinguish models in the SDK.
Readonly
address: PublicKey | PdaThe address of the token account.
Readonly
isWhether or not this is an associated token account.
Readonly
mintThe address of the mint account.
Readonly
ownerThe address of the owner of this token account.
Readonly
amount: SplTokenAmountThe amount of tokens held in this account.
Readonly
closeThe address of the authority that can close the account.
This field is optional and may be null
.
Readonly
delegateThe address of the authority that can act on behalf of the owner
of the account. This field is optional and may be null
.
Readonly
delegateThe amount of tokens that were delegated to the delegate authority. This means the delegate authority cannot transfer more tokens than this amount even if the token account has more tokens available.
This field is only relevant if the account has a delegate authority.
Readonly
state: AccountStateThe state of the token account. It is mostly used to determine whether or not the account is frozen.
It can be one of the following:
AccountState.Uninitialized
: The account has not been initialized.
This should never happen in this model since the SDK would fail to
parse this model if it were uninitialized.AccountState.Initialized
: The account has been initialized and is not frozen.AccountState.Frozen
: The account has been initialized and is frozen.Generated using TypeDoc
This model represents a token account.