Cardano · Schema

Asset Onchain Metadata Cip68 Nft 222

On-chain metadata stored in the datum of the reference NFT output which adheres to 222 NFT Standard https://cips.cardano.org/cips/cip68/

BlockchainCryptocurrencyProof-of-StakeSmart ContractsWeb3

Properties

Name Type Description
name string Name of the asset
image string URI(s) of the associated asset
description string Additional description
mediaType string Mime sub-type of image
files array
View JSON Schema on GitHub

JSON Schema

asset-onchain-metadata-cip68-nft-222.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cardano.blockfrost.io/schema/asset_onchain_metadata_cip68_nft_222",
  "title": "Asset Onchain Metadata Cip68 Nft 222",
  "type": "object",
  "additionalProperties": true,
  "description": "On-chain metadata stored in the datum of the reference NFT output\nwhich adheres to 222 NFT Standard https://cips.cardano.org/cips/cip68/\n",
  "properties": {
    "name": {
      "type": "string",
      "description": "Name of the asset",
      "example": "My NFT token"
    },
    "image": {
      "type": "string",
      "description": "URI(s) of the associated asset",
      "example": "ipfs://ipfs/QmfKyJ4tuvHowwKQCbCHj4L5T3fSj8cjs7Aau8V7BWv226"
    },
    "description": {
      "type": "string",
      "description": "Additional description",
      "example": "My NFT token description"
    },
    "mediaType": {
      "type": "string",
      "description": "Mime sub-type of image",
      "example": "image/jpeg"
    },
    "files": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the file",
            "example": "myimage"
          },
          "mediaType": {
            "type": "string",
            "description": "Mime sub-type of image",
            "example": "image/jpeg"
          },
          "src": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ],
            "description": "URI pointing to a resource of this mime type",
            "example": "My NFT token description"
          }
        },
        "required": [
          "mediaType",
          "src"
        ]
      }
    }
  },
  "required": [
    "name",
    "image"
  ]
}