Zum Inhalt springen
GET /v1/block

Block by number (latest if omitted)

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "hash": "0xdc489c372ee36ff88fc41f1390e2fa70c6eab9b6deb4f0fd5682fd9ae295faeb",
        "miner": "0x0000000000000000000000000000000000000000",
        "number": 70191522,
        "gas_used": 158161,
        "gas_limit": 1125899906842624,
        "timestamp": 1781522096,
        "size_bytes": 0,
        "parent_hash": "0x289ca327510f0803713e843c98380764c135d7a8b9f03f705c605769c9844b32",
        "transaction_count": 1,
        "base_fee_per_gas_wei": "45250000"
    },
    "meta": {
        "timestamp": "2026-06-15T11:14:57.665Z",
        "request_id": "5c3e8d52-a95c-434e-a1e0-4af76323f8ad"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}