Vai al contenuto
GET /v1/staking

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

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/decred-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}