Skip to content
GET /v1/blocks

Latest blocks

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

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

Get an API key

Code snippets

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

Example response

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

{
    "data": {
        "count": 50,
        "blocks": [
            {
                "hash": "0xc52968cb8066ec34e9ef085385f4bd639fe25fa93330eb8c43cce4dc067cd0c6",
                "size": 905,
                "miner": "0x3d4bF7CaD2452D8Ec29F228806B034d9222715A2",
                "height": 6046235,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:50:11.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "500000"
            },
            {
                "hash": "0x976ce09a880d4b02e62ace99a3664ac75b09333b32eb8f8fe22d551db0e906e2",
                "size": 910,
                "miner": "0x8e2932A839F2F12d5E1ECCa73a79B2514f1fc487",
                "height": 6046234,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:50:05.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "500000"
            },
            {
                "hash": "0x418bb1f4602273951875cf3dd557212b8a482f8a30a9674c9783a21151344749",
                "size": 1632,
                "miner": "0x3d4bF7CaD2452D8Ec29F228806B034d9222715A2",
                "height": 6046233,
                "gas_used": 354884,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:50:00.000000Z",
                "burnt_fees": "177442000000",
                "difficulty": "0",
                "base_fee_per_gas": "500000"
            },
            {
                "hash": "0x82cea9364a8e03ebd3d7057e39b43036f147398cffb760a72b2fdd6e40025511",
                "size": 910,
                "miner": "0x8e2932A839F2F12d5E1ECCa73a79B2514f1fc487",
                "height": 6046232,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:49:54.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "500000"
            },
            {
                "hash": "0xecfa2dd864687f9484f717cab10c401dd757b29117605d5b9ce518e64ec19116",
                "size": 910,
                "miner": "0x3d4bF7CaD2452D8Ec29F228806B034d9222715A2",
                "height": 6046231,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:49:49.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "500000"
            },
            {
                "hash": "0x34ae03d79c06a442570b88a42faa981ea518216700197fd4617c5a8bb82ee191",
                "size": 906,
                "miner": "0x8e2932A839F2F12d5E1ECCa73a79B2514f1fc487",
                "height": 6046230,
             
…