suppose I have 10 images in a folder, I got the CID of that folder by uploading it on pinata, what is the fastest way to get tokenURI for each images?

1 Answer 1


The base token URI would be the same for all ten the only change you will see is a change in the name of the file after the CID.

For example, if I have uploaded the photos like 1.json, 2.json, 3.json, etc.

The URI will look like this:


This is a folder for example. https://gateway.pinata.cloud/ipfs/QmYLwrqMmzC3k4eZu7qJ4MZJ4SNYMgqbRJFLkyiPtUBZUP/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.