/v1/block
Block by height (or latest)
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/merlin-api/v1/block" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/merlin-api/v1/block", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/merlin-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/merlin-api/v1/block",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"hash": "0x420030e89f1ee17d09dba67ba899a79aed07f16b1529d0b5e3b8f09b10f1872e",
"miner": "0xf73d921aa8f2dbe77adca8466127b392ede89dc9",
"number": 10000000,
"gas_used": 37977,
"gas_limit": 30000000,
"timestamp": 1713713703,
"size_bytes": 820,
"parent_hash": "0x10d92b137905add2af67acd118dbe2b4bee9187347a4dc4ba4ede3ee42579802",
"timestamp_iso": "2024-04-21T15:35:03.000Z",
"transaction_count": 1,
"base_fee_per_gas_wei": null
},
"meta": {
"timestamp": "2026-06-15T11:14:36.360Z",
"request_id": "47c5e60a-966b-4bb0-a873-637e4969ef82"
},
"status": "ok",
"message": "Block retrieved successfully",
"success": true
}