Module spl_token::instruction[][src]

Instruction types

Enums

AuthorityType

Specifies the authority type for SetAuthority instructions

TokenInstruction

Instructions supported by the token program.

Constants

MAX_SIGNERS

Maximum number of multisignature signers (max N)

MIN_SIGNERS

Minimum number of multisignature signers (min N)

Functions

approve

Creates an Approve instruction.

approve_checked

Creates an ApproveChecked instruction.

burn

Creates a Burn instruction.

burn_checked

Creates a BurnChecked instruction.

close_account

Creates a CloseAccount instruction.

freeze_account

Creates a FreezeAccount instruction.

initialize_account

Creates a InitializeAccount instruction.

initialize_account2

Creates a InitializeAccount2 instruction.

initialize_mint

Creates a InitializeMint instruction.

initialize_multisig

Creates a InitializeMultisig instruction.

is_valid_signer_index

Utility function that checks index is between MIN_SIGNERS and MAX_SIGNERS

mint_to

Creates a MintTo instruction.

mint_to_checked

Creates a MintToChecked instruction.

revoke

Creates a Revoke instruction.

set_authority

Creates a SetAuthority instruction.

thaw_account

Creates a ThawAccount instruction.

transfer

Creates a Transfer instruction.

transfer_checked

Creates a TransferChecked instruction.