/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/katana-api/v1/block" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/katana-api/v1/block", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/katana-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/katana-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": "0x5e6d4bb7f3262ad5320e120e28e9c70f89a9bc8ef54e2ecb94c2483b013a0d8a",
"size": 909,
"miner": "0x4200000000000000000000000000000000000011",
"height": 34145767,
"gas_used": 46266,
"tx_count": 1,
"gas_limit": 120000000,
"timestamp": "2026-06-08T03:16:18.000000Z",
"burnt_fees": "46266000000",
"difficulty": "0",
"base_fee_per_gas": "1000000"
}
},
"meta": {
"timestamp": "2026-06-08T09:50:30.749Z",
"request_id": "dbfa54ab-3e3f-4eae-bf75-b194440a9739"
},
"status": "ok",
"message": "Block retrieved successfully",
"success": true
}