/v1/block
Block detail by height or hash
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/gnosis-api/v1/block" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/gnosis-api/v1/block", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/gnosis-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/gnosis-api/v1/block",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"block": {
"hash": "0x97c3d6a89eaab5e1535cdd5c489810babd6c39956bfc91af72828d6682fe9a24",
"size": 2589,
"miner": "0x1b265301Ce6FacB997c2A1311C753AA038ec36c4",
"height": 35000000,
"reward": "4418025898654446",
"gas_used": 2578967,
"tx_count": 5,
"gas_limit": 17000000,
"timestamp": "2024-07-16T19:13:55.000000Z",
"burnt_fees": "18052769",
"difficulty": "0",
"base_fee_per_gas": "7"
}
},
"meta": {
"timestamp": "2026-06-08T01:18:52.911Z",
"request_id": "bbcf39a4-630e-49d1-b5de-396a28de21bc"
},
"status": "ok",
"message": "Block retrieved successfully",
"success": true
}