/v1/block
Block by number (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/zero-api/v1/block" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/zero-api/v1/block", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/zero-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/zero-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": "0x889ec9cca6b6c9e0437e413483b1e4b9a45b3474f36ff24bd30b56a936d93c8e",
"chain": "ZERO Network",
"miner": "0x0000000000000000000000000000000000000000",
"number": 1000000,
"gas_used": 971454,
"tx_count": 4,
"gas_limit": 1125899906842624,
"timestamp": 1734398102,
"size_bytes": 0,
"parent_hash": "0x1064001a1a9713ce8e2d059bf2ddb57641aec3672555a267234e2902f52876b0",
"timestamp_iso": "2024-12-17T01:15:02.000Z"
},
"meta": {
"timestamp": "2026-06-15T20:40:15.556Z",
"request_id": "ade81abc-14bf-47aa-a87c-7905230a271b"
},
"status": "ok",
"message": "ZERO block retrieved",
"success": true
}