Zum Inhalt springen
GET /v1/block

Block by number (or latest)

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "hash": "0xfacd684f4e93b8c1618a387b1cc9afe22f2a9fdb15f07ba80014aeaf93f36660",
        "chain": "Rollux",
        "miner": "0x4200000000000000000000000000000000000011",
        "number": 5000000,
        "gas_used": 46841,
        "tx_count": 1,
        "gas_limit": 30000000,
        "timestamp": 1697365241,
        "size_bytes": 869,
        "parent_hash": "0xa13aa0bd2277908a5e7156b8db2ba2202c481c02413e50f552442f2aeb57ff76",
        "timestamp_iso": "2023-10-15T10:20:41.000Z"
    },
    "meta": {
        "timestamp": "2026-06-15T20:40:21.888Z",
        "request_id": "195c904d-99c1-47ea-b00f-b2014581f6a3"
    },
    "status": "ok",
    "message": "Rollux block retrieved",
    "success": true
}