Skip to main content

🎥 How to Create a Token-Burning Candy Machine on Solana

Updated on
Jan 30, 2025

1 min read

A video showing how to build a token-burning Candy Machine on Solana where an SPL token needs to be burned to mint an NFT.
Subscribe to our YouTube channel for more videos!

Steps

Candy Guard

    "default": {
"tokenBurn":{
"amount": 100000,
"mint": "bonkKjzREa7pVBRD6nFPAKRaHhS7XpDhhgZCZdGNkuU"
}
}

Logs for Simplified Debugging

You can now access Logs for your RPC endpoints, helping you troubleshoot issues more effectively. If you encounter an issue with your RPC calls, simply check the logs in your QuickNode dashboard to identify and resolve problems quickly. Learn more about log history limits on our pricing page.

Resources

Bonk Mainnet

BONK_MINT = DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263 BONK_DECIMALS = 5 ONE_BONK = 100000 // 1e5 b/c 5 decimals

Bonk Devnet (user-created example)

create your own fungible token

BONK_MINT = bonkKjzREa7pVBRD6nFPAKRaHhS7XpDhhgZCZdGNkuU BONK_DECIMALS = 5 ONE_BONK = 100000 // 1e5 b/c 5 decimals CANDY_MACHINE_ID = ARH5Dx3DYJ1qisBzJWubuhehLaPDA3PiSS2Piv6CQvgj

We ❤️ Feedback!

Let us know if you have any feedback or requests for new topics. We'd love to hear from you.

Share this guide