/v1/range
Start/end block, block count and avg block time for a window
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/blocktime-api/v1/range" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/blocktime-api/v1/range", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/blocktime-api/v1/range");
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/blocktime-api/v1/range",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"note": "The first and last block covering the time window, the number of blocks in it, and the average block time across the window.",
"chain": "ethereum",
"source": "DeFiLlama",
"end_block": 19129889,
"block_count": 220994,
"start_block": 18908895,
"end_timestamp": 1706745600,
"start_timestamp": 1704067200,
"duration_seconds": 2678400,
"avg_block_time_seconds": 12.12
},
"meta": {
"timestamp": "2026-06-14T08:04:14.428Z",
"request_id": "6b10183e-b947-46c9-a849-701b8387813b"
},
"status": "ok",
"message": "Block range retrieved successfully",
"success": true
}