How to set tokenURI metadata? ERC721 Contracts

So, I'm working on a project and I can't seem to find much information about metadata.

I've got a contract that enables the owner to set a baseURI and check it.
I've now got an IPFS setup that stores 1000 .json files named "0-1000" (all formatted correctly for opensea)
What way do I set the tokenURI for each one without doing them all manually.

If I set the baseURI and I've named the files the same as the tokenIDs will marketplaces like opensea recognise this or have I got the wrong idea.

hey, check out the solution here

1 Like