Vai al contenuto
GET /v1/blocks

Latest blocks

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/bob-api/v1/blocks" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bob-api/v1/blocks", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bob-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/bob-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": "0xb6ad2fb131ce2210a6510549392d18342db404b0c7abf24cba32a5d0d924ece9",
                "size": 907,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 34025160,
                "gas_used": 46302,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:51:47.000000Z",
                "burnt_fees": "11668104",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0x41316893264a8ec0a0f2e3ea473571a892ac116d338fc864dddeed3e88bb37af",
                "size": 907,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 34025159,
                "gas_used": 57490,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:51:45.000000Z",
                "burnt_fees": "14487480",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0x9ca234cc7e423bf07e216ba4930bbe35d72e7b4ecc4dfcc9bf61ea8e3c27f6c6",
                "size": 907,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 34025158,
                "gas_used": 46302,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:51:43.000000Z",
                "burnt_fees": "11668104",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0x2223daaf9379483648ec7cd97eba2fd7a82a77960b6e825ab65db220e5a3698c",
                "size": 907,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 34025157,
                "gas_used": 46302,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:51:41.000000Z",
                "burnt_fees": "11668104",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0x9c7c3dad2cd7006f3be523a85eb448cf06313cbb09cd326e29a791a3af78c9a8",
                "size": 907,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 34025156,
                "gas_used": 46302,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:51:39.000000Z",
                "burnt_fees": "11668104",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0x1cd03bf632702b668a58f9fce2a7f04671c8331a005d851ece65409543ed2b36",
                "size": 907,
                "miner": "0x4200000000000000000000000000000000000011",
                "hei
…