Zum Inhalt springen
GET /v1/blocks

The most recent blocks

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/celo-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "count": 50,
        "blocks": [
            {
                "hash": "0x21e0ac62c79a61406123db39f901b6dd2943239ed1a9a532b15467c11a2bbe17",
                "size": 9398,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 68980751,
                "gas_used": 2548958,
                "tx_count": 9,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T01:18:29.000000Z",
                "burnt_fees": "509791600000000000",
                "difficulty": "0",
                "base_fee_per_gas": "200000000000"
            },
            {
                "hash": "0x07bbde12c81deadfb98978be9425cc26599b5d2362b2ae96f916e5d0af6f98c4",
                "size": 3552,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 68980749,
                "gas_used": 506624,
                "tx_count": 4,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T01:18:27.000000Z",
                "burnt_fees": "101324800000000000",
                "difficulty": "0",
                "base_fee_per_gas": "200000000000"
            },
            {
                "hash": "0x53eabd614bf5d1b2883ccef25ef948ac5030c72b32f450fcb689329349828b71",
                "size": 5103,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 68980748,
                "gas_used": 1065696,
                "tx_count": 9,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T01:18:26.000000Z",
                "burnt_fees": "213139200000000000",
                "difficulty": "0",
                "base_fee_per_gas": "200000000000"
            },
            {
                "hash": "0x60fc8d869398f88ece385b3b69410c7f6243c561f02c163c1a08a2b1d1dbd416",
                "size": 1096,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 68980747,
                "gas_used": 89971,
                "tx_count": 2,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T01:18:25.000000Z",
                "burnt_fees": "17994200000000000",
                "difficulty": "0",
                "base_fee_per_gas": "200000000000"
            },
            {
                "hash": "0x2073b3751a7ee0f7df8baf806ce0a6a34453a196e76c6cb8cf6b766c125f3e5a",
                "size": 1654,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 68980746,
                "gas_used": 400676,
                "tx_count": 4,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T01:18:24.000000Z",
                "burnt_fees": "80135200000000000",
                "difficulty": "0",
                "base_fee_per_gas": "200000000000"
            },
            {
                "hash": "0x4789be85149ec7b8d990828e8fa0902660b442db16ab654146a3bf454d9575cc",
                
…