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 supports the thirteen fixed-size mint extensions; variable-length metadata and the confidential extensions are not inferred or initialized automatically.

Re-exports§

pub use crate::token::TOKEN_2022_PROGRAM_ID;

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.

Type Aliases§

MintProgram
The token program a mint is created on: the same selector every token builder takes, under the name mint creation has always used.