Naar de inhoud
GET /v1/blocks

Most recent blocks with miner, size, difficulty, reward

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/ergo-api

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

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/ergo-api/v1/blocks" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/ergo-api/v1/blocks", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/ergo-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/ergo-api/v1/blocks",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "count": 10,
        "blocks": [
            {
                "id": "e561e16ca01c0d19a116557b93f93c5791eceabd33ab400ce3ff3405157619bc",
                "epoch": 1762,
                "miner": "88dhgzEuTXaRQTX5KNdnaWTTX7fEZVEQRn6qP4MJotPuRnS3QpoJxYpSaXoU1y7SHp8ZXMp92TH22DBY",
                "height": 1804874,
                "tx_count": 4,
                "timestamp": "2026-06-10T22:54:03.743Z",
                "difficulty": 101914591100928,
                "miner_name": "2TH22DBY",
                "size_bytes": 38018,
                "miner_reward_erg": 3
            },
            {
                "id": "79cb6b8946a22d48de1d981d35691dcf5d96c242a958197100534a69919ce34a",
                "epoch": 1762,
                "miner": "88dhgzEuTXaSuf5QC1TJDgdxqJMQEQAM6YaTTRqmUDrmPoVky1b16WAK5zMrq3p2mYqpUNKCyi5CLS9V",
                "height": 1804873,
                "tx_count": 6,
                "timestamp": "2026-06-10T22:47:51.115Z",
                "difficulty": 101914591100928,
                "miner_name": "yi5CLS9V",
                "size_bytes": 37215,
                "miner_reward_erg": 3
            },
            {
                "id": "66cd716694e61fa9f8df43e8e34acccf53e860a8925f6087be94c3b3ea3cac32",
                "epoch": 1762,
                "miner": "88dhgzEuTXaRQTX5KNdnaWTTX7fEZVEQRn6qP4MJotPuRnS3QpoJxYpSaXoU1y7SHp8ZXMp92TH22DBY",
                "height": 1804872,
                "tx_count": 4,
                "timestamp": "2026-06-10T22:47:40.260Z",
                "difficulty": 101914591100928,
                "miner_name": "2TH22DBY",
                "size_bytes": 19064,
                "miner_reward_erg": 3
            },
            {
                "id": "ec227906ebdccd3bf942115ed2d76f477e3502cc880077544a34d9abeb7b1e40",
                "epoch": 1762,
                "miner": "88dhgzEuTXaRQTX5KNdnaWTTX7fEZVEQRn6qP4MJotPuRnS3QpoJxYpSaXoU1y7SHp8ZXMp92TH22DBY",
                "height": 1804871,
                "tx_count": 3,
                "timestamp": "2026-06-10T22:44:27.246Z",
                "difficulty": 101914591100928,
                "miner_name": "2TH22DBY",
                "size_bytes": 10277,
                "miner_reward_erg": 3
            },
            {
                "id": "06f0c6bc92ee49a3a58787889e7d54587542dd93759c4da1396162e40d973f35",
                "epoch": 1762,
                "miner": "88dhgzEuTXaSuf5QC1TJDgdxqJMQEQAM6YaTTRqmUDrmPoVky1b16WAK5zMrq3p2mYqpUNKCyi5CLS9V",
                "height": 1804870,
                "tx_count": 21,
                "timestamp": "2026-06-10T22:41:54.110Z",
                "difficulty": 101914591100928,
                "miner_name": "yi5CLS9V",
                "size_bytes": 106666,
                "miner_reward_erg": 3
            },
            {
                "id": "069029944d38d3edb28140ea9bca8f6975daeec87d09de33b70af516a85a34ad",
                "epoch": 1762,
                "miner": "88dhgzEuTXaSuf5QC1TJDgdxqJMQEQAM6YaTTRqmUDrmPoVky1
…