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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "hash": "0x7729ff25f26b42e89df8e33dbcb2183547e28ef972cc7fe63421d44ba627df15",
        "chain": "Songbird",
        "miner": "0x0100000000000000000000000000000000000000",
        "number": 5000000,
        "gas_used": 469532,
        "tx_count": 1,
        "gas_limit": 8000000,
        "timestamp": 1640396749,
        "size_bytes": 1528,
        "parent_hash": "0xb07d0aa67571ddf3a1993ca3bf53fec6deaca446dcb6023b874312eb01c078f9",
        "timestamp_iso": "2021-12-25T01:45:49.000Z"
    },
    "meta": {
        "timestamp": "2026-06-15T20:40:22.582Z",
        "request_id": "f46218ef-c19a-4e68-bf3f-96cc07fdf60c"
    },
    "status": "ok",
    "message": "Songbird block retrieved",
    "success": true
}