/v1/block
A block 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/shimmer-api/v1/block" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/shimmer-api/v1/block", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/shimmer-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/shimmer-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": "0x095e532044ab70d1b7a203a2b0ec08e8d72620eb725aa041ffed32c72236b11a",
"size": 2965,
"miner": "0x0000000000000000000000000000000000000000",
"height": 7973664,
"gas_used": 220176,
"tx_count": 8,
"gas_limit": 1000000000,
"timestamp": "2026-06-08T06:07:40.000000Z",
"burnt_fees": "0",
"difficulty": "0",
"base_fee_per_gas": null
}
},
"meta": {
"timestamp": "2026-06-08T09:49:22.603Z",
"request_id": "1b762c11-94f2-4f07-823e-b152cfe7b2a6"
},
"status": "ok",
"message": "Block retrieved successfully",
"success": true
}