I have to mint 10000 NFTs. But calling mint function 10000 times is not a good idea I guess. Even I created a batchMint function that is calling mint function in loop and it is able to mint multiple NFTs at once (it is saving default gas of 21000 for each mint call). But I just want to know is there any standard or better approach to mint these 10000 NFTs at once.
1 Answer
Please see the smart contract for https://tenthousandsu.com. This includes:
- Mints 10,000 NFTs
- All at once
- And supports ERC-721 Enumerable
Su Squares is the first ERC-721 contract, it is mentioned in the ERC-721 specification as a demo, and it was recently re-released as fully open source so you can copy away!