Skip to main content

Module instruction

Module instruction 

Source
Expand description

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§

amount_to_ui_amount
Creates an AmountToUiAmount instruction
approve
Creates an Approve instruction.
approve_checked
Creates an ApproveChecked instruction.
batch
Creates a Batch instruction
burn
Creates a Burn instruction.
burn_checked
Creates a BurnChecked instruction.
close_account
Creates a CloseAccount instruction.
freeze_account
Creates a FreezeAccount instruction.
get_account_data_size
Creates a GetAccountDataSize instruction
initialize_account
Creates a InitializeAccount instruction.
initialize_account2
Creates a InitializeAccount2 instruction.
initialize_account3
Creates a InitializeAccount3 instruction.
initialize_immutable_owner
Creates a InitializeImmutableOwner instruction
initialize_mint
Creates a InitializeMint instruction.
initialize_mint2
Creates a InitializeMint2 instruction.
initialize_multisig
Creates a InitializeMultisig instruction.
initialize_multisig2
Creates a InitializeMultisig2 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.
sync_native
Creates a SyncNative instruction
sync_native_with_rent_sysvar
Creates a SyncNative instruction with the Rent sysvar account added to the accounts list.
thaw_account
Creates a ThawAccount instruction.
transfer
Creates a Transfer instruction.
transfer_checked
Creates a TransferChecked instruction.
ui_amount_to_amount
Creates a UiAmountToAmount instruction
unwrap_lamports
Creates a UnwrapLamports instruction
withdraw_excess_lamports
Creates a WithdrawExcessLamports instruction