Available Guards
Token Burn Guard
Last updated March 10, 2026
The Token Burn guard requires the minter to permanently burn a configured amount of SPL tokens before the mint transaction is allowed to proceed.
Overview
The Token Burn guard allows minting by burning some of the payer's tokens from a configured mint account. If the payer does not have the required amount of tokens to burn, minting will fail.
Guard Settings
The Token Burn guard contains the following settings:
- Amount: The number of tokens to burn.
- Mint: The address of the mint account defining the SPL Token we want to burn.
Set up a Candy Machine using the NFT Burn guard
Mint Settings
The Token Burn guard contains the following Mint Settings:
- Mint: The address of the mint account defining the SPL Token we want to burn.
Note that, if you're planning on constructing instructions without the help of our SDKs, you will need to provide these Mint Settings and more as a combination of instruction arguments and remaining accounts. See the Candy Guard's program documentation for more details.
Mint with the NFT Burn Guard
You may pass the Mint Settings of the Token Burn guard using the mintArgs argument like so.
mintV1(umi, {
// ...
mintArgs: {
tokenBurn: some({ mint: tokenMint.publicKey }),
},
});
API References: mintV1, TokenBurnMintArgs
Route Instruction
The Token Burn guard does not support the route instruction.
Notes
- Burned tokens are permanently destroyed and cannot be recovered. Ensure the configured Amount accurately reflects the intended cost per mint.
- This guard uses the original SPL Token program. For Token-2022 mints, use the corresponding Token-2022 guard variant instead.
- The payer must hold at least the configured Amount of tokens in their associated token account at the time of minting; otherwise the transaction will fail.
