Vai al contenuto
GET /v1/block

Block summary

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

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

{
    "data": {
        "hash": "0x49daa029c7bff41141ddfec3a77dab6acd5f5e47c4e2fabc8c3a7f7b8184d05e",
        "chain": "ethereum",
        "miner": "0x396343362be2a4da1ce0c1c210945346fb82aa49",
        "number": 25279626,
        "gas_used": 23947378,
        "tx_count": 240,
        "gas_limit": 60000000,
        "timestamp": 1781005187,
        "gas_used_pct": 39.9,
        "base_fee_gwei": 0.154,
        "timestamp_iso": "2026-06-09T11:39:47.000Z"
    },
    "meta": {
        "timestamp": "2026-06-09T11:39:53.909Z",
        "request_id": "b7a34d1e-bf19-46cc-b96f-151cb415fddc"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}