/v1/blocks
Latest blocks
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/unichain-api/v1/blocks" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/unichain-api/v1/blocks", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/unichain-api/v1/blocks");
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/unichain-api/v1/blocks",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"count": 50,
"blocks": [
{
"hash": "0x68026807e2f7dd5f402132e79f14e392c422111f482ae3a54511572c3bb705f5",
"size": 5537,
"miner": "0x4200000000000000000000000000000000000011",
"height": 50133139,
"gas_used": 998524,
"tx_count": 14,
"gas_limit": 60000000,
"timestamp": "2026-06-08T01:18:18.000000Z",
"burnt_fees": "499262000000",
"difficulty": "0",
"base_fee_per_gas": "500000"
},
{
"hash": "0x5e8bf1a45a7c7749f4575e3b409e74756ab5e2651e2de1a7eaf8f9b393b60ef3",
"size": 6002,
"miner": "0x4200000000000000000000000000000000000011",
"height": 50133138,
"gas_used": 990980,
"tx_count": 15,
"gas_limit": 60000000,
"timestamp": "2026-06-08T01:18:17.000000Z",
"burnt_fees": "495490000000",
"difficulty": "0",
"base_fee_per_gas": "500000"
},
{
"hash": "0xf62d9e26059bee812e3c72064f9b94220728b99e3e6a8e7c07f1940b6e4afe76",
"size": 2977,
"miner": "0x4200000000000000000000000000000000000011",
"height": 50133137,
"gas_used": 612520,
"tx_count": 8,
"gas_limit": 60000000,
"timestamp": "2026-06-08T01:18:16.000000Z",
"burnt_fees": "306260000000",
"difficulty": "0",
"base_fee_per_gas": "500000"
},
{
"hash": "0xc750af9dff7f003f9a20d5732041a6c5bd8e0b670b054f4900d9c738968d888d",
"size": 5067,
"miner": "0x4200000000000000000000000000000000000011",
"height": 50133136,
"gas_used": 888343,
"tx_count": 10,
"gas_limit": 60000000,
"timestamp": "2026-06-08T01:18:15.000000Z",
"burnt_fees": "444171500000",
"difficulty": "0",
"base_fee_per_gas": "500000"
},
{
"hash": "0xc2808ace2d55af5fdc0918d5352264936ca8376124a5aae36441d5bd1b0ecc7d",
"size": 6752,
"miner": "0x4200000000000000000000000000000000000011",
"height": 50133135,
"gas_used": 1999324,
"tx_count": 14,
"gas_limit": 60000000,
"timestamp": "2026-06-08T01:18:14.000000Z",
"burnt_fees": "999662000000",
"difficulty": "0",
"base_fee_per_gas": "500000"
},
{
"hash": "0xcfa960d5428490c624050fc9cdeb253705f34203c193a7ea51d2b9933d7a73b1",
"size": 8057,
"miner": "0x420000000000
…