/v1/block
Block by height (or latest)
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/zircuit-api/v1/block" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/zircuit-api/v1/block", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/zircuit-api/v1/block");
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/zircuit-api/v1/block",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"hash": "0xad3cefedd7dfb419c32e92eec345e8e48f8946f25fa15e9c926f3a75de91feaf",
"miner": "0x4200000000000000000000000000000000000011",
"number": 20000000,
"gas_used": 48483,
"gas_limit": 30000000,
"timestamp": 1759936215,
"size_bytes": 897,
"parent_hash": "0x54fafd701a58ff4600a53e28e8bdacdab6b2171b67f2e0c71bfedff9e98fa010",
"timestamp_iso": "2025-10-08T15:10:15.000Z",
"transaction_count": 1,
"base_fee_per_gas_wei": "254"
},
"meta": {
"timestamp": "2026-06-15T11:14:44.753Z",
"request_id": "db7c8fad-a022-446d-8c1f-5cdb3ec05a72"
},
"status": "ok",
"message": "Block retrieved successfully",
"success": true
}