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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "block": {
            "hash": "0x6b9ef2569333a8aa228680771041952ba7f82283468f7971dcef8d8d0f6e0ee1",
            "size": 5043,
            "miner": "0x0100000000000000000000000000000000000000",
            "height": 62490000,
            "gas_used": 1617193,
            "tx_count": 14,
            "gas_limit": 20019540,
            "timestamp": "2026-06-08T07:08:50.000000Z",
            "burnt_fees": "131122849380360",
            "difficulty": "1",
            "base_fee_per_gas": "81080520"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:26:37.161Z",
        "request_id": "68692dd9-1a6c-4777-9e1c-4cd5b6375ac6"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}