/v1/block
A block by height or hash
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/unichain-api/v1/block" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/unichain-api/v1/block", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/unichain-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/unichain-api/v1/block",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"block": {
"hash": "0x61bef46803511ef2344b14e29632af4a49e9b97aa764296ad2e2e8ab96587527",
"size": 1998,
"miner": "0x4200000000000000000000000000000000000011",
"height": 10000000,
"gas_used": 370153,
"tx_count": 4,
"gas_limit": 30000000,
"timestamp": "2025-02-28T13:12:39.000000Z",
"burnt_fees": "93278556",
"difficulty": "0",
"base_fee_per_gas": "252"
}
},
"meta": {
"timestamp": "2026-06-08T01:18:18.309Z",
"request_id": "8f5ec469-9104-4c5b-98a1-617435a7412c"
},
"status": "ok",
"message": "Block retrieved successfully",
"success": true
}