Zum Inhalt springen
GET /v1/blocks

Latest blocks

Live testen

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

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

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

API-Key holen

Code-Snippets

curl "https://api.oanor.com/immutable-api/v1/blocks" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/immutable-api/v1/blocks", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/immutable-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/immutable-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": "0xfa3983d0284310f4f3153000d3093d68390e47a7537f7b1973f43d930355d6a1",
                "size": 681,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 39299526,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T01:18:02.000000Z",
                "burnt_fees": "0",
                "difficulty": "2",
                "base_fee_per_gas": "49"
            },
            {
                "hash": "0x29e5e07240bfa1b2268f039f3b48140bf9c65a6eecea1cb706ea33a6630ac1b4",
                "size": 1789,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 39299525,
                "gas_used": 124308,
                "tx_count": 2,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T01:18:00.000000Z",
                "burnt_fees": "6091092",
                "difficulty": "2",
                "base_fee_per_gas": "49"
            },
            {
                "hash": "0x9b71051951349cb524b385f54c7e4f6f715ae9a144888af7d0166dc0e3c139af",
                "size": 1800,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 39299524,
                "gas_used": 160578,
                "tx_count": 2,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T01:17:58.000000Z",
                "burnt_fees": "7868322",
                "difficulty": "2",
                "base_fee_per_gas": "49"
            },
            {
                "hash": "0x21e3749e67905abf35b38f0b823db24b77862128936fbdaf2fe07b945d3bf688",
                "size": 892,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 39299523,
                "gas_used": 32428,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T01:17:56.000000Z",
                "burnt_fees": "1588972",
                "difficulty": "2",
                "base_fee_per_gas": "49"
            },
            {
                "hash": "0x24eaff80d66a97b645aa7309ac87a715b40f629a5eb78aa24e068373c5796fe7",
                "size": 1473,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 39299522,
                "gas_used": 155752,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T01:17:54.000000Z",
                "burnt_fees": "7631848",
                "difficulty": "2",
                "base_fee_per_gas": "49"
            },
            {
                "hash": "0xa4c94cfa4ff153eabd067b449d3c4d8ecc5273f1a64ce9bc700018f14b940961",
                "size": 1112,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 3929952
…