Ir al contenido
GET /v1/blocks

Latest blocks

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

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

Obtener una clave API

Fragmentos de código

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

Respuesta de ejemplo

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

{
    "data": {
        "count": 50,
        "blocks": [
            {
                "hash": "0xb29d491df6c3e60e2b81958ec0f3015c5669728114e6b8df7281d247b6611468",
                "size": 909,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 34169419,
                "gas_used": 46266,
                "tx_count": 1,
                "gas_limit": 120000000,
                "timestamp": "2026-06-08T09:50:30.000000Z",
                "burnt_fees": "46266000000",
                "difficulty": "0",
                "base_fee_per_gas": "1000000"
            },
            {
                "hash": "0x64e96eb19fa8c93882460d516642da4bfe2281b804fab3b757cac2028db0dcb6",
                "size": 909,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 34169418,
                "gas_used": 46266,
                "tx_count": 1,
                "gas_limit": 120000000,
                "timestamp": "2026-06-08T09:50:29.000000Z",
                "burnt_fees": "46266000000",
                "difficulty": "0",
                "base_fee_per_gas": "1000000"
            },
            {
                "hash": "0xca13990dbab7478dbd19386053d3f0511380640360c10f904ffdb41585290eee",
                "size": 909,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 34169417,
                "gas_used": 46266,
                "tx_count": 1,
                "gas_limit": 120000000,
                "timestamp": "2026-06-08T09:50:28.000000Z",
                "burnt_fees": "46266000000",
                "difficulty": "0",
                "base_fee_per_gas": "1000000"
            },
            {
                "hash": "0x70f53df8e6b884db9953b390d1539b7f7415186499546337277b8e11678da064",
                "size": 909,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 34169416,
                "gas_used": 46266,
                "tx_count": 1,
                "gas_limit": 120000000,
                "timestamp": "2026-06-08T09:50:27.000000Z",
                "burnt_fees": "46266000000",
                "difficulty": "0",
                "base_fee_per_gas": "1000000"
            },
            {
                "hash": "0x38e5e1cf421a9f675d535395570797e153020a3315900b6d56db4205fe1a957c",
                "size": 909,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 34169415,
                "gas_used": 46266,
                "tx_count": 1,
                "gas_limit": 120000000,
                "timestamp": "2026-06-08T09:50:26.000000Z",
                "burnt_fees": "46266000000",
                "difficulty": "0",
                "base_fee_per_gas": "1000000"
            },
            {
                "hash": "0x6d0003a4ddad9302cce4c14ae33c2c3ba2fdb4af1afa99095e6a0b11814a64a7",
                "size": 909,
                "miner": "0x42000000000000000000000
…