Vai al contenuto
GET /v1/block

Block detail 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/gnosis-api

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

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/gnosis-api/v1/block" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/gnosis-api/v1/block", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/gnosis-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/gnosis-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": "0x97c3d6a89eaab5e1535cdd5c489810babd6c39956bfc91af72828d6682fe9a24",
            "size": 2589,
            "miner": "0x1b265301Ce6FacB997c2A1311C753AA038ec36c4",
            "height": 35000000,
            "reward": "4418025898654446",
            "gas_used": 2578967,
            "tx_count": 5,
            "gas_limit": 17000000,
            "timestamp": "2024-07-16T19:13:55.000000Z",
            "burnt_fees": "18052769",
            "difficulty": "0",
            "base_fee_per_gas": "7"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T01:18:52.911Z",
        "request_id": "bbcf39a4-630e-49d1-b5de-396a28de21bc"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}