/v1/cycle
Current (or a given) Tezos protocol cycle
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/tezosbakers-api/v1/cycle" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/tezosbakers-api/v1/cycle", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/tezosbakers-api/v1/cycle");
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/tezosbakers-api/v1/cycle",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"note": "A Tezos protocol cycle: its level range, the rights-snapshot level, total baking power (in XTZ) and the number of bakers/delegators. Omit cycle for the current one.",
"cycle": 1264,
"source": "TzKT",
"end_time": "2026-06-16T21:17:25Z",
"last_level": 13670688,
"start_time": "2026-06-15T21:17:31Z",
"first_level": 13656289,
"total_bakers": 217,
"snapshot_level": 13627488,
"total_delegators": null,
"total_baking_power_xtz": 435477508.058707
},
"meta": {
"timestamp": "2026-06-14T08:03:54.933Z",
"request_id": "99bc465d-2673-4470-8578-d078a945e96f"
},
"status": "ok",
"message": "Cycle retrieved successfully",
"success": true
}