Aller au contenu
GET /v1/staking

Ticket pool size/value, current + next ticket price, estimates

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/decred-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/decred-api/v1/staking" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/decred-api/v1/staking", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/decred-api/v1/staking");
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/decred-api/v1/staking",
    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": {
        "height": 1087582,
        "source": "Decred (dcrdata)",
        "consensus": "hybrid PoW/PoS",
        "window_number": 7552,
        "ticket_pool_size": 40122,
        "window_block_index": 95,
        "next_ticket_price_dcr": 282.57389518,
        "ticket_pool_value_dcr": 11078660.3303,
        "next_price_estimate_dcr": {
            "max": 286.369369,
            "min": 273.186192,
            "expected": 276.34589
        },
        "current_ticket_price_dcr": 282.57389518,
        "ticket_pool_avg_price_dcr": 276.124329
    },
    "meta": {
        "timestamp": "2026-06-10T13:59:12.207Z",
        "request_id": "1282eee3-235c-4183-a067-b1fa9eaf8ffb"
    },
    "status": "ok",
    "message": "Staking state retrieved successfully",
    "success": true
}