Aller au contenu
GET /v1/drep

One DRep in full: voting power, deposit, expiry

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/cardanodreps-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "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
}