Revealing the art (IPFS)
Last updated
Last updated
To ensure each NFT in your collection has a distinct image and set of attributes, you must upload the images and metadata for each NFT to IPFS. Then, set the generated IPFS CID as the baseURI in your collection. Follow these detailed steps to accomplish this:
Prepare your images
Create an "images" folder on your computer.
Name your images to correspond with token IDs ranging from 0 to maxSupply - 1. For example, for a collection of 1000 NFTs, name them from 0 to 999.
For this guide, we will use a smaller collection of 5 NFTs as an example.
Upload images to IPFS
Create a free account at https://pinata.cloud.
Upload your folder of images and copy the CID (Content Identifier) of the folder.
Create your Metadata
Create a JSON file following this structure (replace YOUR_CID_FROM_ABOVE with the CID you copied in the previous step).
Save it as 0.json
on your computer.
Duplicate and modify the Metadata
Duplicate 0.json
for each NFT in your collection, naming each file according to its token ID (e.g., 0.json
, 1.json
, 2.json,
etc.).
Modify each file to reflect the correct token ID and image link. For example, 4.json
would look like this:
Prepare Metadata for Upload: Ensure all metadata files have no file extension (e.g., remove .json
)
Upload Metadata to IPFS
Upload your folder of metadata files to Pinata, similar to how you uploaded the images.
Copy the CID of this metadata folder.
Set the BaseURI in Your Contract: In the Owner menu
-> Contract
on BLASTR, set the baseURI to ipfs://YOUR_METADATA_FOLDER_CID/
Done! Your NFTs will be revealed shortly after setting the baseURI.
NOTE: We cover only the basic fields in the metadata: name, description, and image. If you want to add attributes, please refer to the OpenSea documentation.