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

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

Get an API key

Code snippets

curl "https://api.oanor.com/shape-api/v1/blocks" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/shape-api/v1/blocks", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/shape-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/shape-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": "0x1eadb0c9a69da07a6e03b75f0c0a7e4eb572e6a42b152c67824dfab7804c57b5",
                "size": 909,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 29583912,
                "gas_used": 46230,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:51:35.000000Z",
                "burnt_fees": "462300000000",
                "difficulty": "0",
                "base_fee_per_gas": "10000000"
            },
            {
                "hash": "0x88cd512473dafbbcc6f50807aee240066f5d44125e674732d60ea793d5867278",
                "size": 909,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 29583911,
                "gas_used": 57418,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:51:33.000000Z",
                "burnt_fees": "574180000000",
                "difficulty": "0",
                "base_fee_per_gas": "10000000"
            },
            {
                "hash": "0xff4352f996fb42f634709b7578d695aa7437bbbf335bb32c3c3ac3f51dcd1cc2",
                "size": 909,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 29583910,
                "gas_used": 46242,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:51:31.000000Z",
                "burnt_fees": "462420000000",
                "difficulty": "0",
                "base_fee_per_gas": "10000000"
            },
            {
                "hash": "0x203ab6b498722f15e293ac36dc6c26e10006839b6306bdccd1de243a25adce63",
                "size": 909,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 29583909,
                "gas_used": 46242,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:51:29.000000Z",
                "burnt_fees": "462420000000",
                "difficulty": "0",
                "base_fee_per_gas": "10000000"
            },
            {
                "hash": "0x328af05923335ca86a276318bb8c72f7a4f7a2c66ef54f6f2ea85ffe7d9ba3e3",
                "size": 1208,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 29583908,
                "gas_used": 530000,
                "tx_count": 2,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:51:27.000000Z",
                "burnt_fees": "5300000000000",
                "difficulty": "0",
                "base_fee_per_gas": "10000000"
            },
            {
                "hash": "0xf439c639cc06f54cdc1d092cebfdb1e0803de7e789bd119a529501d84e29ba9f",
                "size": 909,
                "miner": "0x420000000000000
…