Hey everyone, I’m having trouble with my NFT collection numbering. I set it up to go from 0 to 9999, but when I mint, it starts from 1 instead of 0. Here’s a snippet of my JSON file:
I encountered a similar issue when launching my own NFT collection. The problem is most likely in the smart contract rather than the JSON metadata. Many ERC721 implementations begin with token ID 1 by default. To achieve a 0-based system, you need to initialize your counter to zero and adjust the mint function so that it does not add an extra increment. You also need to review related functions that interact with token IDs. Be sure to test any changes on a testnet before redeploying to production.
yo ben, i dealt w/ this before. check ur minting contract, not the json. most start at 1 automatically. gotta tweak the code to begin at 0. careful tho, some marketplaces might glitch with #0. test it out first on a testnet. good luck w/ ur project man!
hey Ben_Comics, that’s a cool idea starting from 0! i’ve seen some collections do that and it always catches my eye. have you thought about how this might affect sorting or display on marketplaces? some might not expect a #0 and it could show up weird. maybe reach out to the platforms you plan to list on and see if they support it? could be a fun quirk for your collection tho! what inspired you to go with the 0-9999 range btw? curious to hear more about your art concept!