This repository is for Candy Machine V3, Account Version V2. (This is what you have when using the latest sugar version to create the candy machine)
Visible to the user:
Mint Page:
Successful mint confirmation:
Visible to the admin:
You can use this repo to deploy your own candy machine UI.
allowlist
,nftBurn
, nftPayment
, solPayment
, startDate
and endDate
addressGate
allocation
allowlist
endDate
freezeSolPayment
freezeTokenPayment
mintLimit
nftBurn
nftGate
nftPayment
redeemedAmount
solPayment
startDate
token2022Payment
tokenBurn
tokenGate
tokenPayment
NEXT_PUBLIC_MULTIMINT=false
to .env
)
pnpm install
.env.example
file to a new .env
file and fill in the NEXT_PUBLIC_CANDY_MACHINE_ID value. You should have this value after creating your candy machine with sugar. pnpm run dev
http://localhost:3000
initialize
button. Click it and then click create LUT
.env
file as the value for NEXT_PUBLIC_LUT
settings.tsx
file. E.g. if one of your groups is called WL
you should have an entry for it in there, tooDone!
You can customize the UI by changing the code. If you just want to modify some values you can instead
settings.tsx
to change the texts and Image.
image
is the main image that is shown. You could change it to your project logo.headerText
is the website header. You could change it to your project name..env
file set NEXT_PUBLIC_MULTIMINT
accordingly to true
or false
. By default a maximum of 15 NFTs can be minted at the same time this is because of wallet limitations. If you want to have less change NEXT_PUBLIC_MAXMINTAMOUNT
in .env
.This ui has a buy me a beer feature. Each mint will transfer a very small amount (0.005) of SOL to a tip wallet. If you do not want to support me feel free to change the NEXT_PUBLIC_BUYMARKBEER variable to false. I would appreachiate it though if you leave it on. 🍻
nftBurn
and nftPayment
guardsIf you need help with this repo, you can contact me. Also feel free to create an issue or a pull request.
If you want to work together on projects let me know!
This is not an official project by the Metaplex team. You can use that code at your own risk. I am not responsible for any losses that you might incur by using this code.
Thanks to the metaplex team for creating NFTs on Solana, Candy Machine and Umi. Special Thanks to @lorisleiva for creating Umi and being so helpful. Also thanks to @tonyboylehub !