mintV2 frontend #1186
Unanswered
MatteoBrescianini
asked this question in
Q&A
mintV2 frontend
#1186
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I’m asking for help from the community. I’ve been reading all the documentation I can for the past three days, but it seems like putting together a frontend logic is an impossible task...
We have a very simple goal: mint one nft from a webApp, with a Candy Machine with this structure for the guards:
"guards": { "default": { }, "groups": [ { "label": "OG", "guards": { "solPayment":{ "value":0.1, "destination":"dest" }, "startDate":{"date":"startdate"}, "endDate":{"date":"enddate"}, "botTax":{ "value":0.01, "lastInstruction":true }, "mintLimit":{ "id":1, "limit":2 }, "allowList":{ "merkleRoot":"mymerkle" } } }, { "label": "WL", "guards": { "solPayment":{ "value":0.2, "destination":"destination" }, "startDate":{"date":"startdate"}, "endDate":{"date":"enddate"}, "botTax":{ "value":0.01, "lastInstruction":true }, "mintLimit":{ "id":2, "limit":1 }, "allowList":{ "merkleRoot":"mymerkleRoot" } } }, ]
. How can we build this mint function?
I’ve found references to the route... to mintV2... Everything works fine until groups are added... From that point onward, there’s no clear information on what to do and how to do it on the frontend to mint an NFT.
The Candy Machine was created with Sugar @latest.
This is an extract of our code...
`
const { guards } = candyGuard;
`
Beta Was this translation helpful? Give feedback.
All reactions