Expand description
SPL Token helpers.
Structs§
- Approve
Checked - Builder for SPL Token ApproveChecked (instruction index 13).
- Burn
Checked - Builder for SPL Token BurnChecked (instruction index 15).
- Close
Account - Builder for SPL Token CloseAccount (instruction index 9).
- Initialize
Account - Builder for SPL Token InitializeAccount (instruction index 1).
- Interface
Mint - Polymorphic SPL Token / Token-2022 mint overlay.
- Interface
Token Account - Polymorphic SPL Token / Token-2022 token-account overlay.
- Mint
ToChecked - Builder for SPL Token MintToChecked (instruction index 14).
- Revoke
- Builder for SPL Token Revoke (instruction index 5).
- Transfer
Checked - Builder for SPL Token TransferChecked (instruction index 12).
Enums§
- Token
Program Kind - Which token program owns this account.
Constants§
- TOKEN_
PROGRAM_ ID - SPL Token program address.
Functions§
- interface_
transfer_ checked - Polymorphic
TransferCheckedCPI that dispatches to the program that owns the source token account. - interface_
transfer_ checked_ signed - PDA-signing variant of
interface_transfer_checked. - require_
mint_ authority - Verify an SPL Mint account’s
mint_authorityCOption field matchesexpected_authority. - require_
mint_ decimals - Verify an SPL Mint account’s
decimalsbyte matchesexpected. - require_
mint_ freeze_ authority - Verify an SPL Mint account’s
freeze_authorityCOption field matchesexpected_freeze. - require_
token_ authority - Verify an SPL Token account’s
ownerfield matchesauthority.key(). - require_
token_ mint - Verify an SPL Token account’s
mintfield matchesexpected_mint. - require_
token_ owner_ eq - Verify an SPL Token account’s
ownerfield matches a pubkey supplied directly (i.e. not wrapped in anAccountView).