/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/arbitrum-api/v1/block" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/arbitrum-api/v1/block", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/arbitrum-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/arbitrum-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": "0xfbb039d0d0e358b4d65f3df3058026fe5576beee3ed1fa2c1ad677d2efe0f3c1",
"size": 801,
"miner": "0xA4b000000000000000000073657175656e636572",
"height": 200000000,
"gas_used": 55132,
"tx_count": 2,
"gas_limit": 1125899906842624,
"timestamp": "2024-04-11T19:09:12.000000Z",
"burnt_fees": "551320000000",
"difficulty": "1",
"base_fee_per_gas": "10000000"
}
},
"meta": {
"timestamp": "2026-06-08T01:18:56.721Z",
"request_id": "f0aa7f06-5cfb-49c3-8e4a-c2725dde63f0"
},
"status": "ok",
"message": "Block retrieved successfully",
"success": true
}