/solana-mint-ui

Up to date mint UI for NFTs on Solana

Primary LanguageTypeScriptMIT LicenseMIT

How to setup a Candy Machine:

  • Create your Candy Machine using Sugar (now supports pNFTs)
  • Change token standard to pNFT: sugar config set -t pnft (optional)
  • Make sure you have setup your Candy Guard. This is a necessary step.

After these, you can use this UI to mint NFTs from your Candy Machine.

Make sure to add your environment variables by copying the contents from the .env.template file into a new .env file.

Candy Guards supported

develop locally

  • yarn

  • Copy and fill the contents from the .env.template file into a .env file.

  • yarn dev

deploy

You can deploy to any provider but make sure you add the NEXT_PUBLIC_CANDY_MACHINE_ID environment variable. (Try Vercel)

adding your own guards

  1. Follow this Link, find the test file of the guard you want to add, and check the necessary 'remaining accounts'.
  • For example, the TokenPayment needs two 'remaining accounts', as seen here
  1. Add your new guard to the mint helper, by adding a new function handler with the name of your guard, following the same pattern as the other guards. Alt text (this image shows the tokenGate handler, that returns one 'remaining account')

  2. Add the 'remaining accounts' necessary for your guard to work. Check the other guards to see how it is done.

  3. You're good to go, no additional steps are necessary.

contribute

  • You can build guards, or improve the UI, and your PR will be happily reviewed & merged.

  • Send tips in SOL to help me build in public: 52zEuaG5VBQTzRP7MLMyEzSuKgYPF9E9dtaWrmXaiNkg