2

I'm trying to deploy an NFT. It's a replica from the mfers contract. The mfers contract has the token URI referenced as ipfs://QmWiQE65tmpYzcokCheQmng2DCM33DEhjXcPB6PanwpAZo/#

Where # is the token number. Across all tokens, the ipfs hash QmWiQE65tmpYzcokCheQmng2DCM33DEhjXcPB6PanwpAZo is the same. How do you set something like this up in ipfs? Note that ipfs URL returns a json object. Thanks in advance.

pjonson2
  • 31
  • 3

1 Answers1

1

If you are interacting with IPFS directly, Mutable File System API abstract away the process of creating directories/subdirectories, treating IPFS as a file system. It isn't how IPFS works, but it is a more intuitive layer on top of IPFS.

If you're uploading via NFT.storage API or client, you might want to check out an uploadDirectory example.

See also: https://gist.github.com/tougerthao/9452b85fcb1f2b2b129c43dd5ecdc885

Pandemonium
  • 7,724
  • 3
  • 32
  • 51