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

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

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/lightlink-api/v1/blocks" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/lightlink-api/v1/blocks", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/lightlink-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/lightlink-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": "0x930074c19a4490f10f9de28a481617ed038500180007edb214a8b07628237547",
                "size": 614,
                "miner": "0x4AD422d61174e9660bE6914B2F6fD799361300C5",
                "height": 210595110,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 15000000,
                "timestamp": "2026-06-08T09:49:41.000000Z",
                "burnt_fees": "0",
                "difficulty": "500",
                "base_fee_per_gas": null
            },
            {
                "hash": "0x0b1d8ad0c10f7416f980e0a2e65fa718df0b06ee93ccdc684c76a6af31aec027",
                "size": 604,
                "miner": "0x4AD422d61174e9660bE6914B2F6fD799361300C5",
                "height": 210595109,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 15000000,
                "timestamp": "2026-06-08T09:49:40.000000Z",
                "burnt_fees": "0",
                "difficulty": "500",
                "base_fee_per_gas": null
            },
            {
                "hash": "0x87c4921eb450a43cdb0ab41ced1a473eb7f6434973c32465b381cbd4b52b504a",
                "size": 600,
                "miner": "0x4AD422d61174e9660bE6914B2F6fD799361300C5",
                "height": 210595108,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 15000000,
                "timestamp": "2026-06-08T09:49:40.000000Z",
                "burnt_fees": "0",
                "difficulty": "500",
                "base_fee_per_gas": null
            },
            {
                "hash": "0x81f7a35b4cd3402612ca11dc440d2b2d93438648cc11bf7a8e185cef08a88316",
                "size": 600,
                "miner": "0x4AD422d61174e9660bE6914B2F6fD799361300C5",
                "height": 210595107,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 15000000,
                "timestamp": "2026-06-08T09:49:39.000000Z",
                "burnt_fees": "0",
                "difficulty": "500",
                "base_fee_per_gas": null
            },
            {
                "hash": "0x987556589b54bd49ec555a3e6f013ce63a3be37dcd1f4d3237892679616084be",
                "size": 607,
                "miner": "0x4AD422d61174e9660bE6914B2F6fD799361300C5",
                "height": 210595106,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 15000000,
                "timestamp": "2026-06-08T09:49:39.000000Z",
                "burnt_fees": "0",
                "difficulty": "500",
                "base_fee_per_gas": null
            },
            {
                "hash": "0x7d25bd796950bd21d307417b26036f76a460d8f4837610888b8d591fe2c05048",
                "size": 607,
                "miner": "0x4AD422d61174e9660bE6914B2F6fD799361300C5",
                "height": 210595105,
                "gas_used": 
…