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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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

{
    "data": {
        "hash": "0x740d3cc56e91a8f3c7da42a2fb5f3760aad08f41d9186142a50c799c1e5ac978",
        "miner": "0x81e3e543647e466a5abc824f5844ab0a091b6c6c",
        "number": 10000000,
        "gas_used": 192777,
        "gas_limit": 40000000,
        "timestamp": 1693539645,
        "size_bytes": 4965,
        "parent_hash": "0xe7a50ae22ff35adfecfb6abbb9c17d89efcc074f47a6cc6d13523e1d03101b14",
        "timestamp_iso": "2023-09-01T03:40:45.000Z",
        "transaction_count": 3,
        "base_fee_per_gas_wei": "4672687804771"
    },
    "meta": {
        "timestamp": "2026-06-15T20:41:16.876Z",
        "request_id": "7e8fac61-f123-4ddd-89dd-6824a1c72290"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}