Skip to content
GET /v1/block

Block detail by height or hash

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/celo-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "block": {
            "hash": "0xf8d968354950561efffe7cb6f3afd2552977089cf154d69fc43c4681658f7a53",
            "size": 18486,
            "miner": "0xbf5049910Db82E8c92B7158c959330BFe5cC135e",
            "height": 25000000,
            "gas_used": 5044549,
            "tx_count": 23,
            "gas_limit": 50000000,
            "timestamp": "2024-04-09T13:49:19.000000Z",
            "burnt_fees": "25222745000000000",
            "difficulty": "0",
            "base_fee_per_gas": "5000000000"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T01:18:34.953Z",
        "request_id": "a56c3e6d-fb6c-45a0-864b-33aed350a300"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}