Naar de inhoud
GET /v1/blocks

Most recent 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/zenchain-api

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

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/zenchain-api/v1/blocks" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/zenchain-api/v1/blocks", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/zenchain-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/zenchain-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": "0x74d86c17f88b9aa8abf3a5ba99dc01119e68dfd1ab9e33e0ac9a4dcb9fcb05c6",
                "size": 514,
                "miner": "0x46A148316EBA94539642f3fD6908dcAB10994D1A",
                "height": 8309290,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T18:25:54.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "500000000"
            },
            {
                "hash": "0x407741d62dcc9608e7cc3eabfe4a7052109d31268e60329b79b571529f01fa4b",
                "size": 514,
                "miner": "0x46A148316EBA94539642f3fD6908dcAB10994D1A",
                "height": 8309289,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T18:25:48.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "500000000"
            },
            {
                "hash": "0xfbb7e66f0cf973487fabc3f4e1ff1eb4d3110d5a63216b588c8cb371241c98d2",
                "size": 514,
                "miner": "0xc0b14552Ad9FD234FD4e9B77D25f76Ec0d889675",
                "height": 8309288,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T18:25:42.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "500000000"
            },
            {
                "hash": "0x7e81efbd041bea7093f9a06698557f65bc96f49d479cc055f740cfb6580c303b",
                "size": 514,
                "miner": "0x46A148316EBA94539642f3fD6908dcAB10994D1A",
                "height": 8309287,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T18:25:36.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "500000000"
            },
            {
                "hash": "0x88ca0641cc1b6710a9c17f347ce92455e03a0357d6d168bd69b9cec0f5c8c590",
                "size": 514,
                "miner": "0x7b70524D7715a19d5d7D7d3e627fB1Ae9B5DD82F",
                "height": 8309286,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T18:25:30.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "500000000"
            },
            {
                "hash": "0x43ae17ad814793210e8134d69482ff1f0cfe5160dd870d785f5de2e5eccbce75",
                "size": 514,
                "miner": "0x10e4f95a5655b932A724eaDea4766eb6671d0cA5",
                "height": 8309285,
               
…