Zum Inhalt springen
GET /v1/block

A block 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/vana-api

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

API-Key holen

Code-Snippets

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_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten 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
}