Skip to main content

Module token_mint

Module token_mint 

Source
Expand description

Allocation and initialization of legacy SPL and Token-2022 mints.

A MintPlan ties the exact allocation to the extension initializers it will execute. It uses no heap allocation and initializes extensions before the base mint. It deliberately supports a bounded set of fixed-size mint extensions; variable-length metadata and confidential extensions are not inferred or initialized automatically.

Structs§

InitializeMint2
Low-level InitializeMint2 CPI builder for either token program.
MintConfig
Base mint configuration. Initializing a mint does not mint any supply.
MintInstructionData
Stack-backed canonical mint instruction data, bounded at 78 bytes.
MintPlan
Validated, allocation-free mint creation plan.

Enums§

MintExtension
Fixed-size mint extensions supported by MintPlan.
MintProgram
The two token programs supported by mint initialization.

Constants§

TOKEN_2022_PROGRAM_ID
Token-2022 program address.