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

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

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/etc-api/v1/blocks" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/etc-api/v1/blocks", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/etc-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/etc-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": "0xfe2b00c0d6884d336506280572db9e2dd575816c983de7357c0090f458d56040",
                "size": 536,
                "miner": "0x6e4f3F1C81b7016c3DeB8b2D434209B926D21AA2",
                "height": 24714960,
                "reward": "2048000000000000000",
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 8000000,
                "timestamp": "2026-06-08T01:17:48.000000Z",
                "burnt_fees": "0",
                "difficulty": "2665741730919255",
                "base_fee_per_gas": null
            },
            {
                "hash": "0x5851f2311e1e0e7e2ace6803d152f9aceb5f551c5be66c2b192432149777a7c6",
                "size": 1984,
                "miner": "0x981217f3FcC2CD5128e01BCFFaa14f0c7E729bdc",
                "height": 24714959,
                "reward": "2112168000000000000",
                "gas_used": 168000,
                "tx_count": 8,
                "gas_limit": 8007811,
                "timestamp": "2026-06-08T01:17:31.000000Z",
                "burnt_fees": "0",
                "difficulty": "2664440734466879",
                "base_fee_per_gas": null
            },
            {
                "hash": "0x48579749de9bbb6079541fc0ab22392c237a566b3bc7b84ee43528e525790315",
                "size": 541,
                "miner": "0x406177B983C28eb720827985eF5953e8430d4E95",
                "height": 24714958,
                "reward": "2048000000000000000",
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 8000000,
                "timestamp": "2026-06-08T01:17:19.000000Z",
                "burnt_fees": "0",
                "difficulty": "2664440734466879",
                "base_fee_per_gas": null
            },
            {
                "hash": "0xcf3ebb4e9d4f1a7d590b29b94b4cf570eea9663df36439bd572a036d3332d03a",
                "size": 541,
                "miner": "0x406177B983C28eb720827985eF5953e8430d4E95",
                "height": 24714957,
                "reward": "2048000000000000000",
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 8000000,
                "timestamp": "2026-06-08T01:17:07.000000Z",
                "burnt_fees": "0",
                "difficulty": "2664440734466879",
                "base_fee_per_gas": null
            },
            {
                "hash": "0xe49cb109fd44eaa3a94078470c71def6d7685dfddfc46c219c5ab01be5377e3f",
                "size": 11953,
                "miner": "0x406177B983C28eb720827985eF5953e8430d4E95",
                "height": 24714956,
                "reward": "2050368271456901000",
                "gas_used": 2121000,
                "tx_count": 101,
                "gas_limit": 8000000,
                "timestamp": "2026-06-08T01:16:44.000000Z",
                "burnt_fees": "0",
                "difficulty": "2665742366481762",
             
…