Skip to content

​What Is Permissioned Burn?

The Token Extension Program’s PermissionedBurnConfig mint extension requires a configured burn authority to co-sign every burn for the mint. While the burn authority is set:
  • The standard Burn and BurnChecked instructions fail with TokenError::InvalidInstruction.
  • Burns must use PermissionedBurnInstruction::Burn or PermissionedBurnInstruction::BurnChecked, signed by both the burn authority and the token account’s owner or delegate.
The burn authority is a co-signer, not a replacement for the owner. The authority alone cannot burn tokens from someone else’s token account, and a token account owner cannot burn without the authority’s signature. A permanent delegate must also use the permissioned burn instructions and still needs the burn authority’s co-signature. This lets an issuer keep token supply in sync with an offchain record, for example a tokenized asset that must stay backed 1:1, by preventing holders from unilaterally burning tokens. The burn authority can be rotated later with SetAuthority using AuthorityType::PermissionedBurn. Setting the authority to None disables permissioned burning and re-enables the standard burn instructions. The extension data itself stays on the mint.

​Before you start

The examples on this page run against a local validator at http://localhost:8899 (WebSocket ws://localhost:8900) and fund their accounts with airdrops from it. Start one in a separate terminal with Surfpool (surfpool start), which loads the current Token-2022 program from mainnet. solana-test-validator bundles an older Token-2022 build without permissioned burn, so to use it instead, load the current program (v11.0.0 or later) from devnet:
Terminal
Each code section below lists the packages or crates it needs. The TypeScript examples use top-level await, so run them as ES modules, for example with npx tsx index.ts in a project whose package.json sets "type": "module".

​How to Create a Mint and Burn With Permission

To create a mint with permissioned burn and burn tokens:
  1. Calculate the mint account size and rent needed for the mint and the PermissionedBurnConfig extension.
  2. Create the mint account with CreateAccount, initialize PermissionedBurnConfig, and initialize the mint with InitializeMint.
  3. Create a token account and mint tokens.
  4. Burn with PermissionedBurnInstruction::BurnChecked signed by both the token account owner and the burn authority.
  5. Optionally disable permissioned burning with SetAuthority using AuthorityType::PermissionedBurn and a None authority, which re-enables the standard burn instructions. The full code examples below show this step.
1

Calculate account size

Calculate the mint account size for the base mint plus the PermissionedBurnConfig extension. This is the size used in CreateAccount.
Example
2

Calculate rent

Calculate rent using the size needed for the mint plus the PermissionedBurnConfig extension.
Example
3

Create the mint account

Create the mint account with the calculated space and lamports.
Example
4

Initialize PermissionedBurn

Initialize the PermissionedBurnConfig extension on the mint with the burn authority.
Example
5

Initialize the mint

Initialize the mint with InitializeMint in the same transaction.
Example
6

Create a token account and mint tokens

Create a token account for the payer and mint tokens to it.
Example
7

Burn with the burn authority

Burn tokens with PermissionedBurnInstruction::BurnChecked signed by both the token account owner and the burn authority.
Example
Instruction OrderPermissionedBurnInstruction::Initialize must come before InitializeMint. CreateAccount, PermissionedBurnInstruction::Initialize, and InitializeMint must be included in the same transaction.

​Source Reference

ItemDescriptionSource
PermissionedBurnConfigMint extension that stores the authority required to co-sign every burn for the mint.Source
PermissionedBurnInstruction::InitializeInstruction that initializes the permissioned burn config before InitializeMint.Source
PermissionedBurnInstruction::BurnBurn instruction that requires signatures from the burn authority and the token account owner or delegate.Source
PermissionedBurnInstruction::BurnCheckedBurn instruction with a decimals check that uses the same accounts as PermissionedBurnInstruction::Burn.Source
AuthorityType::PermissionedBurnAuthority discriminator used with SetAuthority to rotate or disable the burn authority on a mint.Source
process_initializeProcessor logic that initializes PermissionedBurnConfig on an uninitialized mint and stores the burn authority.Source
process_burnProcessor logic that rejects standard burns when the burn authority is set and verifies the authority’s signature.Source
process_set_authorityProcessor logic that validates and rotates the burn authority when AuthorityType::PermissionedBurn is used.Source

​Kit

These examples use the generated Token-2022 instructions directly.
Terminal
Instructions

​Web3.js v3

These examples use the class-based @solana/web3.js v3 API with @solana-program instruction builders.
Terminal
Instructions

​Rust

Add these dependencies to Cargo.toml (tested with Rust 1.98 and 1.99). Permissioned burn needs spl-token-2022-interface 3 or later, which uses the newer Solana crates. Keep solana-client on the 4.3 line (Rust 1.97.1 or later): 4.4 moved to solana-transaction 5, which solana-sdk 4 doesn’t use.
Cargo.toml
Rust

​Web3.js (legacy)

These examples use legacy @solana/web3.js with @solana/spl-token 0.4.15 or later, which added the permissioned burn helpers.
@solana/web3.js 1.x is no longer actively maintainedIt receives critical fixes only. Use Kit for new code. To migrate existing code, follow the Kit upgrade guide, or the web3.js v3 migration guide to keep the class-based API.To run this code, install 1.x with npm install @solana/web3.js@1. A plain npm install @solana/web3.js installs v3, which this code doesn’t run on.
Terminal
Instructions