1 min de lecture
Candy Machine V3 is Deprecated
Ce guide utilise Sugar V2 avec Candy Machine V3, qui n'est plus prise en charge. Pour les nouveaux projets NFT, consultez l'article « Comment lancer une collection NFT avec Metaplex Core Candy Machine ». Ce guide est fourni à titre informatif uniquement.
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.
Abonnez-vous à notre chaîne YouTube pour découvrir d'autres vidéos !S'abonner
Steps
- Install Solana CLI
- Download and Install Sugar (CMV3)
- Set keypair (-k) and RPC (-u) in Solana CLI (
solana config set -u RPC-URL). ReplaceRPC-URLwith a Solana RPC which you can also get Quicknode. - Config Candy Machine wihtout Candy Guards
- Upload Assets (
vérification de la teneur en sucre->téléchargement de sucre) - Deploy Candy Machine (
déploiement de Sugar) - Add Candy Guard (see below) (
sugar guard add) - Fork Solana Scaffold (
gh repo clone solana-labs/dapp-scaffold .) - Add dependencies (
yarn add @metaplex-foundation/js @solana/spl-token env) - Update
next.config.js(link) - Update .env
- Update Mint Button
Candy Guard
"default": {
"tokenBurn":{
"amount": 100000,
"mint": "bonkKjzREa7pVBRD6nFPAKRaHhS7XpDhhgZCZdGNkuU"
}
}
Ressources
- https://www.quicknode.com/guides/solana-development/how-to-create-a-solana-nft-collection-using-candy-machine-v3-and-typescript
- https://www.quicknode.com/guides/solana-development/how-to-deploy-an-nft-collection-on-solana-using-sugar-candy-machine
- https://www.quicknode.com/guides/solana-development/how-to-connect-users-to-your-dapp-with-the-solana-wallet-adapter-and-scaffold
- https://github.com/metaplex-foundation/sugar/releases
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
Nous ❤️ les commentaires !
Faites-nous savoir si vous avez des commentaires ou des suggestions de nouveaux sujets. Nous serions ravis de vous entendre.
