/v1/staking
Ticket pool size/value, current + next ticket price, estimates
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
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_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"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
}