/v1/block
Block detail 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/cyber-api/v1/block" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cyber-api/v1/block", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cyber-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/cyber-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": "0x1277a56018627463230526c5b6b1d0b5fce277c17279a66bec254380471a2662",
"size": 849,
"miner": "0x4200000000000000000000000000000000000011",
"height": 33744000,
"gas_used": 43827,
"tx_count": 1,
"gas_limit": 30000000,
"timestamp": "2026-06-08T11:02:47.000000Z",
"burnt_fees": "11044404",
"difficulty": "0",
"base_fee_per_gas": "252"
}
},
"meta": {
"timestamp": "2026-06-08T18:26:21.904Z",
"request_id": "0e990634-3838-407c-a54b-e5414ecd6106"
},
"status": "ok",
"message": "Block retrieved successfully",
"success": true
}