Vai al contenuto
GET /v1/block

A block by height or hash

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/hyperevm-api/v1/block" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hyperevm-api/v1/block", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hyperevm-api/v1/block");
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/hyperevm-api/v1/block",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "block": {
            "hash": "0xb324093ea08d9672026a21e0f57e14477c226feeb8e6b2cc19c4ffc62f41b477",
            "size": 1614,
            "miner": "0x0000000000000000000000000000000000000000",
            "height": 37247338,
            "reward": "7959572148409154",
            "gas_used": 1907656,
            "tx_count": 4,
            "gas_limit": 3000000,
            "timestamp": "2026-06-08T04:13:57.000000Z",
            "burnt_fees": "233030933856872",
            "difficulty": "0",
            "base_fee_per_gas": "122155637"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:07.155Z",
        "request_id": "7643a8c1-e8b6-40d4-a494-29066430b7c3"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}