/v1/block
A block by height or hash
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/zora-api/v1/block" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/zora-api/v1/block", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/zora-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/zora-api/v1/block",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"block": {
"hash": "0x4082222ffc1c6e6bf1f97c9d44b9a608d442898ef948272136fc5bfb0733c89b",
"size": 1674,
"miner": "0x4200000000000000000000000000000000000011",
"height": 47101275,
"gas_used": 137329,
"tx_count": 2,
"gas_limit": 30000000,
"timestamp": "2026-06-08T05:26:29.000000Z",
"burnt_fees": "34606908",
"difficulty": "0",
"base_fee_per_gas": "252"
}
},
"meta": {
"timestamp": "2026-06-08T09:49:40.133Z",
"request_id": "f9a9deb7-b3cd-4091-8e3e-9affaf0dd589"
},
"status": "ok",
"message": "Block retrieved successfully",
"success": true
}