跳转至主要内容

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

更新于
2026年3月27日

阅读时间 1 分钟

Candy Machine V3 is Deprecated

This guide uses Sugar V2 with Candy Machine V3, which has been deprecated. For new NFT projects, see How to Launch an NFT Collection with Metaplex Core Candy Machine. This guide is for historic educational purposes only.

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.
订阅我们的YouTube频道,观看更多视频!

Steps

Candy Guard

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

资源

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

我们 ❤️ 您的反馈!

如果您有任何反馈或对新主题的建议,请告诉我们。我们非常期待您的来信。

分享本指南