Naar de inhoud
GET /v1/blocks

Latest blocks

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/world-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "count": 50,
        "blocks": [
            {
                "hash": "0x7c9b0a7caba14ac1d95eeca08357373a040d0560a0a42f494cac580bf24dc33b",
                "size": 49543,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 30788312,
                "gas_used": 10456696,
                "tx_count": 36,
                "gas_limit": 280000000,
                "timestamp": "2026-06-08T09:51:03.000000Z",
                "burnt_fees": "5228348000000",
                "difficulty": "0",
                "base_fee_per_gas": "500000"
            },
            {
                "hash": "0x12e19d69b0f49e1fd3a263e63be8ecbda30323f4a8c56b50d44ddcfe87d5495c",
                "size": 36268,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 30788311,
                "gas_used": 7199071,
                "tx_count": 30,
                "gas_limit": 280000000,
                "timestamp": "2026-06-08T09:51:01.000000Z",
                "burnt_fees": "3599535500000",
                "difficulty": "0",
                "base_fee_per_gas": "500000"
            },
            {
                "hash": "0x70cd09d3c7c5dedb5ccb7cf247c84454058bda065359edd3a99734766973805b",
                "size": 33505,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 30788310,
                "gas_used": 7950158,
                "tx_count": 25,
                "gas_limit": 280000000,
                "timestamp": "2026-06-08T09:50:59.000000Z",
                "burnt_fees": "3975079000000",
                "difficulty": "0",
                "base_fee_per_gas": "500000"
            },
            {
                "hash": "0x411cd1ab60b9f7682878ee64cfba49daa5a9b876f0a6ca00fe549491fa6e4600",
                "size": 35947,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 30788309,
                "gas_used": 8460237,
                "tx_count": 24,
                "gas_limit": 280000000,
                "timestamp": "2026-06-08T09:50:57.000000Z",
                "burnt_fees": "4230118500000",
                "difficulty": "0",
                "base_fee_per_gas": "500000"
            },
            {
                "hash": "0x82aff2c88883444a1231b3873dde023190184685028ad92efad448d0781196ef",
                "size": 43651,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 30788308,
                "gas_used": 8784164,
                "tx_count": 27,
                "gas_limit": 280000000,
                "timestamp": "2026-06-08T09:50:55.000000Z",
                "burnt_fees": "4392082000000",
                "difficulty": "0",
                "base_fee_per_gas": "500000"
            },
            {
                "hash": "0xd35816b25ea7dc9001fd5b3671f75d4ef09563419cb8bd91b39a3cfe47f004b9",
                "size": 37852,
                "m
…