This guide will walk you through the steps to set up the user interface (UI) for your Candy Machine, allowing users to mint NFTs using the SPL token you've created. The UI will use the SPL token as the payment method, and users will be able to mint NFTs by connecting their Phantom wallet.
make sure you have :
-
- A Candy Machine with specific informations in its
config.json
file, including pricing, quantity, symbol, seller fee, SPL token account, SPL token, go-live date, and creator details.
- A Candy Machine with specific informations in its
- A Phantom wallet to act as the minting wallet.
If you don;t have it, create the SPL token following the guidelines from Lesson Three. Make sure to note down the SPL token's address.
Open your Candy Machine's config.json
file and update the following fields:
splTokenAccount
: Update this field with the SPL token account address you've created.splToken
: Update this field with the SPL token address.
Follow the steps outlined in the "Quick Node: Set Up a Minting Site" tutorial to create a user interface for your Candy Machine. This UI will allow users to connect their Phantom wallets and mint NFTs using the SPL token as payment.
In the minting logic of your SPL project (as per Lesson Three), make the necessary adjustments to mint NFTs to the Phantom wallet address instead of the fromWallet
. Alternatively, adjust the transfer function to send the minted NFTs to your Phantom wallet.
Test the entire setup by transferring or minting your SPL token to one of your Phantom accounts. Then, use the UI you've created to mint NFTs. The users should be able to mint NFTs by paying in the SPL token you've set up.
my candy machine details
splTokenAccount
: "p6izmM9op6HqiXjnBjCVTETRrcovAXg2WhBsfw3gEB2"splToken
: "7WyssGDpand1JoBtC6H9WpyN2wC1Co4bqwhUocA3LQ1F"
By following these steps, you'll have successfully set up a Candy Machine UI that allows users to mint NFTs using the SPL token you've created. Users can connect their Phantom wallets and use the SPL token as payment to mint NFTs from your Candy Machine. Remember to thoroughly test the setup before deploying it for public use. CODE WITH VENKI FUN WITH VENKI