Blockfrost · Schema
drep
drep schema from Blockfrost API
BlockchainCardanoCryptocurrencyDAppsNFTWeb3
Properties
| Name | Type | Description |
|---|---|---|
| drep_id | string | Bech32 encoded DRep address |
| hex | string | The raw bytes of the DRep |
| amount | string | The total amount of voting power this DRep is delegated. |
| active | boolean | Registration state of the DRep |
| active_epoch | integer | Epoch of the most recent registration |
| has_script | boolean | Flag which shows if this DRep credentials are a script hash |
| retired | boolean | Registration state of the DRep. Set to `true` if the DRep has been deregistered; otherwise, `false`. |
| expired | boolean | Whether the DRep has been inactive for a consecutive number of epochs (determined by a epoch parameter `drep_activity`) |
| last_active_epoch | integer | Epoch of the most recent action - registration, update, deregistration or voting |
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-schema.json",
"title": "drep",
"description": "drep schema from Blockfrost API",
"type": "object",
"properties": {
"drep_id": {
"type": "string",
"description": "Bech32 encoded DRep address"
},
"hex": {
"type": "string",
"description": "The raw bytes of the DRep"
},
"amount": {
"type": "string",
"description": "The total amount of voting power this DRep is delegated."
},
"active": {
"type": "boolean",
"description": "Registration state of the DRep",
"deprecated": true
},
"active_epoch": {
"type": "integer",
"nullable": true,
"description": "Epoch of the most recent registration",
"deprecated": true
},
"has_script": {
"type": "boolean",
"description": "Flag which shows if this DRep credentials are a script hash"
},
"retired": {
"type": "boolean",
"description": "Registration state of the DRep. Set to `true` if the DRep has been deregistered; otherwise, `false`."
},
"expired": {
"type": "boolean",
"description": "Whether the DRep has been inactive for a consecutive number of epochs (determined by a epoch parameter `drep_activity`)"
},
"last_active_epoch": {
"type": "integer",
"nullable": true,
"description": "Epoch of the most recent action - registration, update, deregistration or voting"
}
},
"required": [
"drep_id",
"hex",
"amount",
"active",
"active_epoch",
"has_script",
"retired",
"expired",
"last_active_epoch"
]
}