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

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

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/sophon-api/v1/block" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/sophon-api/v1/block", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/sophon-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/sophon-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": "0xb1d6bcaf2baa982e9f41e635e9ca3041a2eee0bf49079811e4c275212496517a",
        "miner": "0x0000000000000000000000000000000000000000",
        "number": 5000000,
        "gas_used": 620195,
        "gas_limit": 1125899906842624,
        "timestamp": 1739687366,
        "size_bytes": 0,
        "parent_hash": "0x8ab69af6126406e0fc03f29b51e9276e2b0ffb6c23a9ece0a28355f29d871acf",
        "timestamp_iso": "2025-02-16T06:29:26.000Z",
        "transaction_count": 5,
        "base_fee_per_gas_wei": "2070973792921"
    },
    "meta": {
        "timestamp": "2026-06-15T20:40:29.572Z",
        "request_id": "9d599a81-3786-4060-bd17-e15f513bd4b3"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}