Zum Inhalt springen
GET /v1/block

Block detail by height or hash

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/lukso-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "block": {
            "hash": "0x3f08ebe3b60978faefce367e253c7f609c288465008a6cd49123ae2bc7e46600",
            "size": 1202,
            "miner": "0xa5b37D755B97C272853b9726C905414706A0553a",
            "height": 7708000,
            "gas_used": 0,
            "tx_count": 0,
            "gas_limit": 42000000,
            "timestamp": "2026-06-08T12:04:36.000000Z",
            "burnt_fees": "0",
            "difficulty": "0",
            "base_fee_per_gas": "8"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:56.233Z",
        "request_id": "1e2da798-0140-4d12-b155-0176e2c44bd3"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}