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

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

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/ink-api/v1/blocks" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/ink-api/v1/blocks", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/ink-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/ink-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": "0xf1283fa91b1117cdea501ae5b7fc711e389909bb2b91f4b7ed1b0d3b3932573a",
                "size": 4177,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 47413893,
                "reward": "18286453815",
                "gas_used": 519115,
                "tx_count": 5,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:51:44.000000Z",
                "burnt_fees": "145352200",
                "difficulty": "0",
                "base_fee_per_gas": "280"
            },
            {
                "hash": "0x3d8a0dbcda2744fbeee4f216d6dddba7fc2c2befe78229091e755cde29dabd1a",
                "size": 4177,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 47413892,
                "reward": "18286498031",
                "gas_used": 519115,
                "tx_count": 5,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:51:43.000000Z",
                "burnt_fees": "145352200",
                "difficulty": "0",
                "base_fee_per_gas": "280"
            },
            {
                "hash": "0xc7c401ab19d79acd74c7bf64a1bfab596a6eb99df29880416516066e83a037c7",
                "size": 4177,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 47413891,
                "reward": "18286496017",
                "gas_used": 519115,
                "tx_count": 5,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:51:42.000000Z",
                "burnt_fees": "145871315",
                "difficulty": "0",
                "base_fee_per_gas": "281"
            },
            {
                "hash": "0x989032c1948bd1cfed8bfbbf65afd58d82da442a9864a550899a22b42bb59036",
                "size": 4177,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 47413890,
                "reward": "18286494003",
                "gas_used": 519115,
                "tx_count": 5,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:51:41.000000Z",
                "burnt_fees": "146390430",
                "difficulty": "0",
                "base_fee_per_gas": "282"
            },
            {
                "hash": "0x3f8f36bc8c986492bae9a714bc743e08a9ae388f451af379fc8a510f268800ec",
                "size": 4299,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 47413889,
                "reward": "18375329774",
                "gas_used": 535242,
                "tx_count": 5,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:51:40.000000Z",
                "burnt_fees": "150938244",
                "difficulty": "0",
                "base_fee_per_gas": "282"
            },
        
…