Naar de inhoud
GET /v1/blocks

Most recent 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/flow-api

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

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/flow-api/v1/blocks" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/flow-api/v1/blocks", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/flow-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/flow-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": "0x0d1bf8c736d2ef399d9cf3122e801fc140bb5616d4e26cc45e461a350c088959",
                "size": 197,
                "miner": "0x0000000000000000000000030000000000000000",
                "height": 68161215,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 120000000,
                "timestamp": "2026-06-08T18:25:29.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "1"
            },
            {
                "hash": "0xce6ee05d1481fd91ad26235d4c03b3a955266e09497fa7ab9a5e799fa9426593",
                "size": 197,
                "miner": "0x0000000000000000000000030000000000000000",
                "height": 68161214,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 120000000,
                "timestamp": "2026-06-08T18:25:29.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "1"
            },
            {
                "hash": "0xa45fb87fe9d652d6d380d728fb6ffc05d1d0071a5e5c1dc3a89ac1775f33c874",
                "size": 197,
                "miner": "0x0000000000000000000000030000000000000000",
                "height": 68161213,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 120000000,
                "timestamp": "2026-06-08T18:25:28.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "1"
            },
            {
                "hash": "0x8d7208eae6ad524af87d7bcd1fe110cf67975e1f233afd2a4e1a1105811297e2",
                "size": 1123,
                "miner": "0x0000000000000000000000030000000000000000",
                "height": 68161212,
                "gas_used": 90730,
                "tx_count": 2,
                "gas_limit": 120000000,
                "timestamp": "2026-06-08T18:25:27.000000Z",
                "burnt_fees": "90730",
                "difficulty": "0",
                "base_fee_per_gas": "1"
            },
            {
                "hash": "0x03d4c2ac3641477a265b74f648b4c1b3a41bd855d51cfff477c7bd81fc5a2611",
                "size": 1188,
                "miner": "0x0000000000000000000000030000000000000000",
                "height": 68161211,
                "gas_used": 98469,
                "tx_count": 2,
                "gas_limit": 120000000,
                "timestamp": "2026-06-08T18:25:26.000000Z",
                "burnt_fees": "98469",
                "difficulty": "0",
                "base_fee_per_gas": "1"
            },
            {
                "hash": "0x53ea88bad30be60e16c8b81ff0a671871c8a424c284199cf748b0f5317786c5d",
                "size": 1123,
                "miner": "0x0000000000000000000000030000000000000000",
                "height": 68161210,
                "gas_used
…