Vai al contenuto
GET /v1/blocks

Most recent blocks

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/cyber-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/cyber-api/v1/blocks" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cyber-api/v1/blocks", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cyber-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/cyber-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": "0x667e271f8f50e20066cac0bb2590b7c25e66d37b2cf1ef3acf02e22b200fecec",
                "size": 849,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 33757306,
                "gas_used": 43827,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T18:26:19.000000Z",
                "burnt_fees": "11044404",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0xa80990dd414dd4aa02e6d2a46bffe2b000abf485a71ab79bddf25d43a2bcd613",
                "size": 849,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 33757305,
                "gas_used": 43827,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T18:26:17.000000Z",
                "burnt_fees": "11044404",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0xf7ccc0aa104c2ce36b4a4ebef8e6438d2aca3c3668667ed0911c1861f8c3575a",
                "size": 849,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 33757304,
                "gas_used": 43827,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T18:26:15.000000Z",
                "burnt_fees": "11044404",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0x69e9ba0ed11e8fa842699bb5a5b5469339c47ac98be695e199e3d7fb773c4a25",
                "size": 849,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 33757303,
                "gas_used": 43827,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T18:26:13.000000Z",
                "burnt_fees": "11044404",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0x008e515442a6294e228f408bff67278c7f7f6fd553feb2d447da9401f3c5e63b",
                "size": 849,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 33757302,
                "gas_used": 55015,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T18:26:11.000000Z",
                "burnt_fees": "13863780",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0xa035a97957efab01383c66d86a02d3cca24ce5f05262424444ec85ad30047906",
                "size": 849,
                "miner": "0x4200000000000000000000000000000000000011",
                "hei
…