Naar de inhoud
GET /v1/block

Block by height (or latest)

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/zircuit-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "hash": "0xad3cefedd7dfb419c32e92eec345e8e48f8946f25fa15e9c926f3a75de91feaf",
        "miner": "0x4200000000000000000000000000000000000011",
        "number": 20000000,
        "gas_used": 48483,
        "gas_limit": 30000000,
        "timestamp": 1759936215,
        "size_bytes": 897,
        "parent_hash": "0x54fafd701a58ff4600a53e28e8bdacdab6b2171b67f2e0c71bfedff9e98fa010",
        "timestamp_iso": "2025-10-08T15:10:15.000Z",
        "transaction_count": 1,
        "base_fee_per_gas_wei": "254"
    },
    "meta": {
        "timestamp": "2026-06-15T11:14:44.753Z",
        "request_id": "db7c8fad-a022-446d-8c1f-5cdb3ec05a72"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}