How to mint multiple NFT token from Metaplex Candy Machine v2? #3
-
I am trying to mint multiple token (2 in my case) from one user click. I see in the metaplex JS library, there's one function called mintOneToken which allows us to mint one token at time. How can I implement the function which mints n token at one click of the user? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
That functionality is added in CMv2 cli repo, and looks: if (index < NUMBER_OF_NFTS_TO_MINT - 1) {
log.info('minting another token...');
await mintToken(index + 1);
} This statement in the discord community by TonyBoyle.eth#0265 helped a lot to make sense of the problem.
you can add this to the |
Beta Was this translation helpful? Give feedback.
That functionality is added in CMv2 cli repo, and looks:
This statement in the discord community by TonyBoyle.eth#0265 helped a lot to make sense of the problem.
you can add this to the
onMint
function in theHome.tsx
and tweak the frontend accordingly.