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

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

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/electroneum-api/v1/block" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/electroneum-api/v1/block", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/electroneum-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/electroneum-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": "0x72473827a65eefad55cabc45f9775cb617ff82684e0edd4312d1d8760996dcc7",
            "size": 3953,
            "miner": "0x135ec2bc4C04935CCd53967a072562120E4A3f92",
            "height": 14158506,
            "reward": "483000000000000",
            "gas_used": 483000,
            "tx_count": 23,
            "gas_limit": 30000000,
            "timestamp": "2026-06-08T06:25:29.000000Z",
            "burnt_fees": "3381000",
            "difficulty": "1",
            "base_fee_per_gas": "7"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:17.882Z",
        "request_id": "4b3b64eb-d0ed-49e3-8069-1f4d7ae67a38"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}