Articles on: Smart Contract

How to upload a collection to IPFS?

We currently only handle collections of 24GB or less but you can still deploy a smart contract by uploading your collection to IPFS yourself. This 4 step guide will help you through the process.

Step 1 - Uploading the assets folder

You will need to create an account on one of the services below to upload your files to IPFS. Once your account is created, you will need to upload the assets folder.

Once uploaded, you should see an IPFS cid. Save this value somewhere since we will need in the next step.

nft.storage (free)
https://filebase.com/ (paid)

If you are using NFT Storage, considering their application NFT Up

Step 2 - Regenerate your metadata

Visit https://nft-generator.art/metadata, click "choose file" and find the file named metadata.json in your metadata folder. This should populate the collection name and description if you had one.
In the "Image Url Prefix" text box, you will paste the following information: ipfs://REPLACE_WITH_CID_FROM_PREVIOUS_STEP/ (do not forget the ending /) and click "Generate".
CID FROM PREVIOUS STEP



PASTE ON "Image Url Prefix"


Step 3 - Upload the metadata

Repeat Step 1 but select ALL the metadata files (complete folder) that you just regenerated.

Step 4 - Smart Contract

Finally, return to your account page and create a new smart-contract but choose "I have my own collection".

Here you will paste BOUTH CID you got previously: Images CID and Metadata CID

Step 5 - Verify your metadata (optional)

Choose an IPFS gateway from the list one https://ipfs.github.io/public-gateway-checker/ and replace the CID from the url.

Example #1:
https://cloudflare-ipfs.com/ipfs/bafybeianuazrta5x72q5abeft4fm2y2amnsex4fpiygutxegtei3zbg2fa/1.json

{
  "name": "Doodle Fruit #1",
  "description": "Six unique types of cute fruit characters.",
  "external_url": "https://nft-generator.art/",
  "image": "ipfs://bafybeih6td5tppm4bwwaznwdzj3zqgpa2jktfcq3xa3ououos6e2cxgq7a/1.png",
  "attributes": []
}


Example #2:
https://cloudflare-ipfs.com/ipfs/bafybeig6umtekb7hehjdvyojofykbk2w4unbgauglhk2yotv5pxato52qm/1.png

Updated on: 10/11/2022

Was this article helpful?

Share your feedback

Cancel

Thank you!