Ir al contenido
GET /v1/block

Block by height (or latest)

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/scroll-api

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

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/scroll-api/v1/block" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/scroll-api/v1/block", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/scroll-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/scroll-api/v1/block",
    headers={"x-oanor-key": "oanor_test_..."}
)

Respuesta de ejemplo

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

{
    "data": {
        "hash": "0x3d92380cbca7f8724bd8b559104436988654995a6a69e9ce7c49ec0aede16704",
        "miner": "0x0000000000000000000000000000000000000000",
        "number": 30000000,
        "gas_used": 123563,
        "gas_limit": 20000000,
        "timestamp": 1770887715,
        "size_bytes": 869,
        "parent_hash": "0x41a0b83d0fb140e3b52c8077f6f5b53fc62cfefcb666c3c8a79cdfbe6f877267",
        "timestamp_iso": "2026-02-12T09:15:15.000Z",
        "transaction_count": 1,
        "base_fee_per_gas_wei": "120008"
    },
    "meta": {
        "timestamp": "2026-06-15T11:14:46.813Z",
        "request_id": "67413f17-691b-4a04-9c51-21e7d18f2150"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}