/v1/blocks
Most recent 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/rari-api/v1/blocks" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/rari-api/v1/blocks", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/rari-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/rari-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": "0xa31f6da9287a04a72be53f98bcf872077656b0571ddc2ba082e43824d1906386",
"size": 887,
"miner": "0xA4b000000000000000000073657175656e636572",
"height": 4027846,
"gas_used": 25086,
"tx_count": 2,
"gas_limit": 1125899906842624,
"timestamp": "2026-06-08T18:25:06.000000Z",
"burnt_fees": "3762900000000",
"difficulty": "1",
"base_fee_per_gas": "150000000"
},
{
"hash": "0x7f83ea44f64051fddb860e1c5bd69cb0ea3cd3dd4f53e8e3cf0b75caae2f5800",
"size": 887,
"miner": "0xA4b000000000000000000073657175656e636572",
"height": 4027845,
"gas_used": 25086,
"tx_count": 2,
"gas_limit": 1125899906842624,
"timestamp": "2026-06-08T18:25:04.000000Z",
"burnt_fees": "3762900000000",
"difficulty": "1",
"base_fee_per_gas": "150000000"
},
{
"hash": "0xcdb8bb1998a5df0de7efa84f542fb12985ce536ad186f19180faa6d4b00096a3",
"size": 887,
"miner": "0xA4b000000000000000000073657175656e636572",
"height": 4027844,
"gas_used": 25086,
"tx_count": 2,
"gas_limit": 1125899906842624,
"timestamp": "2026-06-08T18:24:43.000000Z",
"burnt_fees": "3762900000000",
"difficulty": "1",
"base_fee_per_gas": "150000000"
},
{
"hash": "0x6b7c5bd7b1b46d5756ed82a8e9251017273ad278feae01d08d054dba3256f8b7",
"size": 2236,
"miner": "0xA4b000000000000000000073657175656e636572",
"height": 4027843,
"gas_used": 191525,
"tx_count": 6,
"gas_limit": 1125899906842624,
"timestamp": "2026-06-08T18:22:23.000000Z",
"burnt_fees": "28728750000000",
"difficulty": "1",
"base_fee_per_gas": "150000000"
},
{
"hash": "0x380f22859c90025f80d62b7ab6c818772f643de3af3077aaff6b93cf0bbd6d49",
"size": 1007,
"miner": "0xA4b000000000000000000073657175656e636572",
"height": 4027842,
"gas_used": 38321,
"tx_count": 2,
"gas_limit": 1125899906842624,
"timestamp": "2026-06-08T18:22:23.000000Z",
"burnt_fees": "5748150000000",
"difficulty": "1",
"base_fee_per_gas": "150000000"
},
{
"hash": "0x49d004fb3c761fe14d510c726a0e8ac6bfc20ce24d6983659823774a2d47eaa9",
"size": 10
…