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

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

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/worldchain-api/v1/block" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/worldchain-api/v1/block", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/worldchain-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/worldchain-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": "0x405e963c3531b5eebe7ce8baf29776a2f832bd6070c771580d25dcefbb03096d",
        "miner": "0x4200000000000000000000000000000000000011",
        "number": 31000000,
        "gas_used": 7328009,
        "gas_limit": 280000000,
        "timestamp": 1781335639,
        "size_bytes": 36832,
        "parent_hash": "0xc325ba45cee082be5749172f1a16e1408257a2d0423bb94b75e4f496819b4b45",
        "timestamp_iso": "2026-06-13T07:27:19.000Z",
        "transaction_count": 29,
        "base_fee_per_gas_wei": "500000"
    },
    "meta": {
        "timestamp": "2026-06-15T11:14:48.172Z",
        "request_id": "7e886943-dd50-494a-81c5-c84e36492dfa"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}