Naar de inhoud
GET /v1/block

A block by height or hash

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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

{
    "data": {
        "block": {
            "hash": "0x2436dc1c4d88897fad623df03e6f303a4173f73ec7a564f1cba4dec7284dce3d",
            "size": 3895,
            "miner": "0x79D7E19e88f5089CC31e925160a7252F287a51a7",
            "height": 8717007,
            "gas_used": 341937,
            "tx_count": 9,
            "gas_limit": 60000000,
            "timestamp": "2026-06-08T02:56:31.000000Z",
            "burnt_fees": "2393559",
            "difficulty": "0",
            "base_fee_per_gas": "7"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:49.915Z",
        "request_id": "6dba3b79-5fb1-44d3-a7cc-1e2ae7363b83"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}