NFT json格式

unisocks结构:

{
  "image": "https://cloudflare-ipfs.com/ipfs/QmYN3R1YY5cSVW6mNHXz86n6HAvjJoNeVGXmwrQcYqgMUU",
  "external_url": "https://unisocks.exchange",
  "description": "Dynamically priced socks.",
  "name": "Digital Unisocks Edition 0",
  "attributes": [
    {
      "trait_type": "Fuzziness",
      "value": "Extreme"
    },
    {
      "trait_type": "Color",
      "value": "Deep Pink on Crème"
    },
    {
      "trait_type": "Material",
      "value": "Cotton blend"
    },
    {
      "trait_type": "Made In",
      "value": "USA"
    },
    {
      "trait_type": "Length",
      "value": "Mid-calf"
    },
    {
      "trait_type": "Size",
      "value": "One size fits most"
    },
    {
      "trait_type": "Rarity",
      "value": "1 / 500"
    },
    {
      "trait_type": "USD Value",
      "value": "ethPrice * 17500 / (500 - socksSold)**2"
    },
    {
      "trait_type": "Version",
      "value": 0,
      "display_type": "number"
    }
  ],
  "background_color": "ffffff"
}

加上自定义的数据格式:

{
  "image": "https://cloudflare-ipfs.com/ipfs/QmYN3R1YY5cSVW6mNHXz86n6HAvjJoNeVGXmwrQcYqgMUU",
  "external_url": "https://unisocks.exchange",
  "description": "Dynamically priced socks.",
  "name": "Digital Unisocks Edition 0",
  "meta": {
    "Issuer":"Minix",
    "Cid":"123456",
    "Pattern":"https://cloudflare-ipfs.com/ipfs/QmNZEeAN1z",
    "SerialNumber":"2021-6-1",
    "CardName":"kusama纪念卡",
    "Flipside":"https://cloudflare-ipfs.com/ipfs/QmNZEeAN1z",
    "Watermark":"https://cloudflare-ipfs.com/ipfs/QmNZEeAN1z"
  },
  "attributes": [
    {
      "trait_type": "Fuzziness",
      "value": "Extreme"
    },
    {
      "trait_type": "Color",
      "value": "Deep Pink on Crème"
    },
    {
      "trait_type": "Material",
      "value": "Cotton blend"
    },
    {
      "trait_type": "Made In",
      "value": "USA"
    },
    {
      "trait_type": "Length",
      "value": "Mid-calf"
    },
    {
      "trait_type": "Size",
      "value": "One size fits most"
    },
    {
      "trait_type": "Rarity",
      "value": "1 / 500"
    },
    {
      "trait_type": "USD Value",
      "value": "ethPrice * 17500 / (500 - socksSold)**2"
    },
    {
      "trait_type": "Version",
      "value": 0,
      "display_type": "number"
    }
  ],
  "background_color": "ffffff"
}

ERC 721的结构

https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
在这里插入图片描述

opensea的结构:

https://docs.opensea.io/docs/metadata-standards

{
  "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": [ ... ], 
}

加上自定义的数据格式:

{
  "description": "Friendly OpenSea Creature that enjoys long swims in the ocean.",
  "external_url": "https://nft.coming.chat/?cid=28028407201",
  "image": "https://bafybeia4uxobaeb35znih2bclkarkcnjovqi6wf4pobvpk24mhsrnecxju.ipfs.dweb.link/",
  "name": "Coming Card",
  "attributes": [
    {
      "trait_type": "Issuer",
      "value": "Minix"
    },
    {
      "trait_type": "Cid",
      "value": "123456"
    },
    {
      "trait_type": "Pattern",
      "value": "https://cloudflare-ipfs.com/ipfs/QmNZEeAN1z"
    },
    {
      "trait_type": "SerialNumber",
      "value": "2021-6-1"
    },
    {
      "trait_type": "CardName",
      "value": "kusama纪念卡"
    },
    {
      "trait_type": "Flipside",
      "value": "https://cloudflare-ipfs.com/ipfs/QmNZEeAN1z"
    },
    {
      "trait_type": "Watermark",
      "value": "https://cloudflare-ipfs.com/ipfs/QmNZEeAN1z"
    }
  ],
  "background_color": "ffffff"
}
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值