Cardano · Schema

Tx Metadata Label Json

BlockchainCryptocurrencyProof-of-StakeSmart ContractsWeb3
View JSON Schema on GitHub

JSON Schema

tx-metadata-label-json.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cardano.blockfrost.io/schema/tx_metadata_label_json",
  "title": "Tx Metadata Label Json",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "tx_hash": {
        "type": "string",
        "description": "Transaction hash that contains the specific metadata"
      },
      "json_metadata": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "object",
            "additionalProperties": true
          },
          {
            "type": "array",
            "items": {}
          },
          {
            "type": "integer"
          },
          {
            "type": "number"
          },
          {
            "type": "boolean"
          },
          {
            "type": "null"
          }
        ],
        "description": "Content of the JSON metadata"
      }
    },
    "required": [
      "tx_hash",
      "json_metadata"
    ]
  },
  "example": [
    {
      "tx_hash": "257d75c8ddb0434e9b63e29ebb6241add2b835a307aa33aedba2effe09ed4ec8",
      "json_metadata": {
        "ADAUSD": [
          {
            "value": "0.10409800535729975",
            "source": "ergoOracles"
          }
        ]
      }
    },
    {
      "tx_hash": "e865f2cc01ca7381cf98dcdc4de07a5e8674b8ea16e6a18e3ed60c186fde2b9c",
      "json_metadata": {
        "ADAUSD": [
          {
            "value": "0.15409850555139935",
            "source": "ergoOracles"
          }
        ]
      }
    },
    {
      "tx_hash": "4237501da3cfdd53ade91e8911e764bd0699d88fd43b12f44a1f459b89bc91be",
      "json_metadata": null
    }
  ]
}