/v1/block
Block by height (or latest)
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/bitlayer-api/v1/block" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bitlayer-api/v1/block", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bitlayer-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/bitlayer-api/v1/block",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"hash": "0xfd27f19d136513343b2a6b3337d62eade1fb643f0688ffbefd9e9eb2226741eb",
"miner": "0x56cb8f58ead1c8d5066235e17223a49dc2dc471d",
"number": 10000000,
"gas_used": 147000,
"gas_limit": 40000000,
"timestamp": 1742276634,
"size_bytes": 1884,
"parent_hash": "0x34e1f9a4d47db0a2b50f52c7dd06ce8e7a35d282887b9f323cf56228a504170e",
"timestamp_iso": "2025-03-18T05:43:54.000Z",
"transaction_count": 7,
"base_fee_per_gas_wei": "7"
},
"meta": {
"timestamp": "2026-06-15T11:14:38.163Z",
"request_id": "3aa92c0f-c107-4fde-9e18-b16579cb7768"
},
"status": "ok",
"message": "Block retrieved successfully",
"success": true
}