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

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

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/energyweb-api/v1/blocks" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/energyweb-api/v1/blocks", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/energyweb-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/energyweb-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": "0x2a2578144d792cef409f844465b0099bd6466c44ff2e8851692e4cf3643d15d5",
                "size": 751,
                "miner": "0xc56B672Afd3FAE873bf8A40bbE80f51075b187CA",
                "height": 41257361,
                "reward": "399123746012",
                "gas_used": 36284,
                "tx_count": 1,
                "gas_limit": 8000000,
                "timestamp": "2026-06-08T09:49:45.000000Z",
                "burnt_fees": "253988",
                "difficulty": "340282366920938463463374607431768211454",
                "base_fee_per_gas": "7"
            },
            {
                "hash": "0xb82542ec22af6e1806ca8383875265d923cbaa50224f2a38f29eef83f3be3bfa",
                "size": 920,
                "miner": "0xdE15831ac319DAb5eAe5fD1FD9d52876c5E50F20",
                "height": 41257360,
                "reward": "7982479492024",
                "gas_used": 72568,
                "tx_count": 2,
                "gas_limit": 8000000,
                "timestamp": "2026-06-08T09:49:40.000000Z",
                "burnt_fees": "507976",
                "difficulty": "340282366920938463463374607431768211454",
                "base_fee_per_gas": "7"
            },
            {
                "hash": "0xdab920b154f4bc88a6a91eae5623f774b4df200f15dd24519cf96320d6e83cf8",
                "size": 563,
                "miner": "0x83329C3FD90D7Ee2eFD546e0dc6453e9172A0643",
                "height": 41257359,
                "reward": "0",
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 8000000,
                "timestamp": "2026-06-08T09:49:35.000000Z",
                "burnt_fees": "0",
                "difficulty": "340282366920938463463374607431768211453",
                "base_fee_per_gas": "7"
            },
            {
                "hash": "0x4ec9ef46aa4c6f71d68bb8d73d3dc00fdcc3283594813f140174c47231d3ede1",
                "size": 1097,
                "miner": "0x4c8FC2cAd90bEE5332E887d3c9184424E76b11E0",
                "height": 41257358,
                "reward": "8381603238036",
                "gas_used": 108852,
                "tx_count": 3,
                "gas_limit": 8000000,
                "timestamp": "2026-06-08T09:49:25.000000Z",
                "burnt_fees": "761964",
                "difficulty": "340282366920938463463374607431768211454",
                "base_fee_per_gas": "7"
            },
            {
                "hash": "0x0e91029c067d63b94c1925dbcbe441a1608c79100ec744d51e2220d8ad723215",
                "size": 575,
                "miner": "0x177e147e5552903629CcE2e42361Edd899ec7978",
                "height": 41257357,
                "reward": "0",
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 8000000,
                "timestamp": "2026-06-08T09:49:20.000000Z",
                "burnt_fees": "0",
                "
…