Revealing the art (IPFS)

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:

  1. Prepare your images

    1. Create an "images" folder on your computer.

    2. 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.

    3. For this guide, we will use a smaller collection of 5 NFTs as an example.

  1. Upload images to IPFS

    1. Create a free account at https://pinata.cloud.

    2. Upload your folder of images and copy the CID (Content Identifier) of the folder.

  1. Create your Metadata

    1. Create a JSON file following this structure (replace YOUR_CID_FROM_ABOVE with the CID you copied in the previous step).

    2. Save it as 0.json on your computer.

{
  "name": "My First NFT #0",
  "description": "This is my first NFT ever!",
  "image": "ipfs://YOUR_CID_FROM_ABOVE/0.png"
}
  1. Duplicate and modify the Metadata

    1. 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.).

    2. Modify each file to reflect the correct token ID and image link. For example, 4.json would look like this:

{
  "name": "My First NFT #4",
  "description": "This is my first NFT ever!",
  "image": "ipfs://QmPuBcJgNqPEBLdrcKvNLQy2NnQR5t56q1rCSiG16bVUcm/4.png"
}
  1. Prepare Metadata for Upload: Ensure all metadata files have no file extension (e.g., remove .json)

  1. Upload Metadata to IPFS

    1. Upload your folder of metadata files to Pinata, similar to how you uploaded the images.

    2. Copy the CID of this metadata folder.

  1. Set the BaseURI in Your Contract: In the Owner menu -> Contracton BLASTR, set the baseURI to ipfs://YOUR_METADATA_FOLDER_CID/

  2. Done! Your NFTs will be revealed shortly after setting the baseURI.

Last updated