/v1/drep
One DRep in full: voting power, deposit, expiry
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/cardanodreps-api/v1/drep" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cardanodreps-api/v1/drep", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cardanodreps-api/v1/drep");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/cardanodreps-api/v1/drep",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"hex": "002e87e32c1735bef2af2825943a9c06714857d1fc19385b86e429a3",
"note": "One DRep in full: its live delegated voting power (the ADA whose vote it casts), the 500 ADA registration deposit, whether the registration is still active, the epoch the mandate expires, and any off-chain metadata anchor. Omit drep_id to use the first registered DRep.",
"active": false,
"source": "Koios",
"status": "registered",
"drep_id": "drep1ygqzaplr9stnt0hj4u5zt9p6nsr8zjzh687pjwzmsmjzngcdwm2a2",
"meta_url": null,
"meta_hash": null,
"has_script": false,
"deposit_ada": 500,
"deposit_lovelace": "500000000",
"expires_epoch_no": 585,
"voting_power_ada": 12175.863018,
"voting_power_lovelace": "12175863018"
},
"meta": {
"timestamp": "2026-06-14T17:04:23.596Z",
"request_id": "ab27845e-1c80-48a2-8ee8-c5ad97bcd1fa"
},
"status": "ok",
"message": "DRep retrieved successfully",
"success": true
}