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/perennial-api

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

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/perennial-api/v1/blocks" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/perennial-api/v1/blocks", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/perennial-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/perennial-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": "0x85e16f3fc5fa2b82246a60ec304b50e81d8d4de4f262a1b5eec5e11d1baee248",
                "size": 907,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 42130371,
                "gas_used": 51770,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:50:10.000000Z",
                "burnt_fees": "13046040",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0x8e3a67dab16a10c068681a5f298332cea2093703b22cadae0be743b6d1ca2482",
                "size": 907,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 42130370,
                "gas_used": 46182,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:50:09.000000Z",
                "burnt_fees": "11637864",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0xe8516ecd3a960232fbf9f6659f3bcfd3321d15041026fdd2560d084bfd044096",
                "size": 907,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 42130369,
                "gas_used": 46182,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:50:08.000000Z",
                "burnt_fees": "11637864",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0xda8aef3212295ffc03e48bdf93903cc1eb89df5d6791be2a1bee9c3dcd797c98",
                "size": 907,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 42130368,
                "gas_used": 48970,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:50:07.000000Z",
                "burnt_fees": "12340440",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0x0d010ed98f4f4cb9d8a5fcf8ca04d12617ed2f75d6acfd2a652ff0a1be8959f4",
                "size": 907,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 42130367,
                "gas_used": 51770,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:50:06.000000Z",
                "burnt_fees": "13046040",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0x56d64611ed598352a8da094b4258a7750e0c182f27ecab849fcd1cc667db6315",
                "size": 907,
                "miner": "0x4200000000000000000000000000000000000011",
                "hei
…