/v1/block
Block by height (or latest)
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/scroll-api/v1/block" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/scroll-api/v1/block", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/scroll-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/scroll-api/v1/block",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"hash": "0x3d92380cbca7f8724bd8b559104436988654995a6a69e9ce7c49ec0aede16704",
"miner": "0x0000000000000000000000000000000000000000",
"number": 30000000,
"gas_used": 123563,
"gas_limit": 20000000,
"timestamp": 1770887715,
"size_bytes": 869,
"parent_hash": "0x41a0b83d0fb140e3b52c8077f6f5b53fc62cfefcb666c3c8a79cdfbe6f877267",
"timestamp_iso": "2026-02-12T09:15:15.000Z",
"transaction_count": 1,
"base_fee_per_gas_wei": "120008"
},
"meta": {
"timestamp": "2026-06-15T11:14:46.813Z",
"request_id": "67413f17-691b-4a04-9c51-21e7d18f2150"
},
"status": "ok",
"message": "Block retrieved successfully",
"success": true
}