Ir al contenido
GET /v1/range

Start/end block, block count and avg block time for a window

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/blocktime-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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_..."}
)

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "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
}