Skip to content

How to mint multiple NFT token from Metaplex Candy Machine v2? #3

Answered by supercoolx
dennisabio asked this question in Q&A
Discussion options

You must be logged in to vote

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.

The mint multiple in the CLI just loops a single transaction it's technically not multiple mint in one transaction

you can add this to the onMint function in the Home.tsx and tweak the frontend accordingly.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dennisabio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants