207 ERC-721 IPFS x Metadata upload

閱讀時間約 5 分鐘
  • decentralize protocol
  • CID link

1. Create NFT Metadata for NFT image

  • decentralize storage
  1. upload the image "folder" to pinata which include the PNG picture and json file
  1. copy the CID link
  1. check how theNFT metadat work by the link
{
"description": "Friendly OpenSea Creature that enjoys long swims in the ocean.",
"external_url": "https://openseacreatures.io/3",
"image": "https://storage.googleapis.com/opensea-prod.appspot.com/puffs/3.png",
"name": "Dave Starbelly",
"attributes": [ ... ]
}


  1. Pick an example
{"image":"ipfs:\/\/QmevGKhS4Aoxz8xrnRGwojNdVyMfchyust23cFS8SoXVBM",
"name":"Doodle #3893",
"description":"A community-driven collectibles project featuring art by Burnt Toast.
Doodles come in a joyful range of colors, traits and sizes with a collection size of 10,000.
Each Doodle allows its owner to vote for experiences and activations paid for by the Doodles Community Treasury.
Burnt Toast is the working alias for Scott Martin, a Canadian\u2013based illustrator, designer, animator and muralist.",
"attributes":[
{
"trait_type":"face",
"value":"sunglasses"
},
{
"trait_type":"hair",
"value":"blue puffballs"
},
{
"trait_type":"body",
"value":"purple chain"
},
{
"trait_type":"background",
"value":"iridescent"
},
{
"trait_type":"head",
"value":"gradient 1"
}
]
}


  1. Finish setting up the whole Json file

2. Upload NFT Metadata to IPFS

  1. upload the json "folder" to pinata
  2. copy the ipfs://QmNTavFH9nGicrdJhHgpCTB2cFYqVaWJguYWgGQBFeGRNA/0.png on the website, then you can see the ipfs you upload


[Reference] Metadata Standards, OpenSea Developers

尋大神腳印, 亦步亦趨。
留言0
查看全部
發表第一個留言支持創作者!
從 Google News 追蹤更多 vocus 的最新精選內容