Blockfrost · Schema
drep_metadata
drep_metadata schema from Blockfrost API
BlockchainCardanoCryptocurrencyDAppsNFTWeb3
Properties
| Name | Type | Description |
|---|---|---|
| drep_id | string | Bech32 encoded addresses |
| hex | string | The raw bytes of the DRep |
| url | string | URL to the drep metadata |
| hash | string | Hash of the metadata file |
| json_metadata | object | Content of the JSON metadata (validated CIP-119) |
| bytes | string | Content of the metadata (raw) |
| error | object | Present when metadata could not be fetched or validated. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/blockfrost/refs/heads/main/json-schema/blockfrost-drep-metadata-schema.json",
"title": "drep_metadata",
"description": "drep_metadata schema from Blockfrost API",
"type": "object",
"properties": {
"drep_id": {
"type": "string",
"description": "Bech32 encoded addresses"
},
"hex": {
"type": "string",
"description": "The raw bytes of the DRep"
},
"url": {
"type": "string",
"example": "https://stakenuts.com/drep.json",
"description": "URL to the drep metadata"
},
"hash": {
"type": "string",
"example": "69c0c68cb57f4a5b4a87bad896fc274678e7aea98e200fa14a1cb40c0cab1d8c\"",
"description": "Hash of the metadata file"
},
"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 (validated CIP-119)"
},
"bytes": {
"type": "string",
"description": "Content of the metadata (raw)",
"nullable": true
},
"error": {
"type": "object",
"description": "Present when metadata could not be fetched or validated.",
"properties": {
"code": {
"type": "string",
"description": "Stable machine-readable error code.",
"enum": [
"HASH_MISMATCH",
"CONNECTION_ERROR",
"HTTP_RESPONSE_ERROR",
"DECODE_ERROR",
"SIZE_EXCEEDED",
"UNKNOWN_ERROR"
]
},
"message": {
"type": "string",
"description": "Human-readable description of the error."
}
},
"required": [
"code",
"message"
]
}
},
"required": [
"drep_id",
"hex",
"url",
"hash",
"json_metadata",
"bytes"
]
}