Home
Blockfrost
Blockfrost Drep Metadata Structure
Blockfrost Drep Metadata Structure
drep_metadata schema from Blockfrost API
Type: object
Properties: 7
Required: 6
Blockchain Cardano Cryptocurrency DApps NFT Web3
drep_metadata is a JSON Structure definition published by Blockfrost, describing 7 properties, of which 6 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.
Properties
drep_id
hex
url
hash
json_metadata
bytes
error
Meta-schema: https://json-structure.org/meta/core/v0/#
JSON Structure
{
"$schema": "https://json-structure.org/meta/core/v0/#",
"$id": "https://raw.githubusercontent.com/api-evangelist/blockfrost/refs/heads/main/json-structure/blockfrost-drep-metadata-structure.json",
"name": "drep_metadata",
"description": "drep_metadata schema from Blockfrost API",
"required": [
"drep_id",
"hex",
"url",
"hash",
"json_metadata",
"bytes"
],
"type": "object",
"properties": {
"drep_id": {
"description": "Bech32 encoded addresses",
"type": "string"
},
"hex": {
"description": "The raw bytes of the DRep",
"type": "string"
},
"url": {
"description": "URL to the drep metadata",
"type": "string"
},
"hash": {
"description": "Hash of the metadata file",
"type": "string"
},
"json_metadata": {
"description": "Content of the JSON metadata (validated CIP-119)",
"anyOf": [
{
"type": "string"
},
{
"additionalProperties": true,
"type": "object"
},
{
"type": "array",
"items": {}
},
{
"type": "int32"
},
{
"type": "double"
},
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"bytes": {
"description": "Content of the metadata (raw)",
"type": "string"
},
"error": {
"description": "Present when metadata could not be fetched or validated.",
"required": [
"code",
"message"
],
"type": "object",
"properties": {
"code": {
"description": "Stable machine-readable error code.",
"enum": [
"HASH_MISMATCH",
"CONNECTION_ERROR",
"HTTP_RESPONSE_ERROR",
"DECODE_ERROR",
"SIZE_EXCEEDED",
"UNKNOWN_ERROR"
],
"type": "string"
},
"message": {
"description": "Human-readable description of the error.",
"type": "string"
}
}
}
}
}