/v1/staking
Ticket pool size/value, current + next ticket price, estimates
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
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_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"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
}