Skip to main content

Module instructions

Module instructions 

Source
Expand description

SPL Token instruction builders exported by Hopper.

Safety-by-default exports include checked variants plus operations whose SPL semantics do not need a mint-decimals guard. Enable the explicit legacy-token-instructions feature to expose the deprecated plain Transfer, MintTo, Burn, and Approve builders for migration tests.

Structsยง

ApproveChecked
Builder for SPL Token ApproveChecked (instruction index 13).
BurnChecked
Builder for SPL Token BurnChecked (instruction index 15).
CloseAccount
Builder for SPL Token CloseAccount (instruction index 9).
InitializeAccount
Builder for SPL Token InitializeAccount (instruction index 1).
MintToChecked
Builder for SPL Token MintToChecked (instruction index 14).
Revoke
Builder for SPL Token Revoke (instruction index 5).
TransferChecked
Builder for SPL Token TransferChecked (instruction index 12).