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

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

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/swell-api/v1/blocks" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/swell-api/v1/blocks", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/swell-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/swell-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": "0xe3d81e2e52ce1dbec25e6c53ac11b59fb370a2b34d398c3a799fe73d3dcf2631",
                "size": 1021,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 24107797,
                "gas_used": 613284,
                "tx_count": 2,
                "gas_limit": 60000000,
                "timestamp": "2026-06-08T09:51:37.000000Z",
                "burnt_fees": "153934284",
                "difficulty": "0",
                "base_fee_per_gas": "251"
            },
            {
                "hash": "0xab1727016e6e72d83771de4426629126b44aed672efe0c8b594c16935e4b5735",
                "size": 1021,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 24107796,
                "gas_used": 1309805,
                "tx_count": 2,
                "gas_limit": 60000000,
                "timestamp": "2026-06-08T09:51:35.000000Z",
                "burnt_fees": "328761055",
                "difficulty": "0",
                "base_fee_per_gas": "251"
            },
            {
                "hash": "0x4f2d2410083c10b763314f1374ac1c3dadf76708684398e093648248406391e0",
                "size": 907,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 24107795,
                "gas_used": 46230,
                "tx_count": 1,
                "gas_limit": 60000000,
                "timestamp": "2026-06-08T09:51:33.000000Z",
                "burnt_fees": "11603730",
                "difficulty": "0",
                "base_fee_per_gas": "251"
            },
            {
                "hash": "0xb6bd1d531ddd5c1c5061a9c980caca7594087bcb7353f17e0dbee32b0f5551ca",
                "size": 1133,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 24107794,
                "gas_used": 1326942,
                "tx_count": 3,
                "gas_limit": 60000000,
                "timestamp": "2026-06-08T09:51:31.000000Z",
                "burnt_fees": "333062442",
                "difficulty": "0",
                "base_fee_per_gas": "251"
            },
            {
                "hash": "0x89db2f2410cf55c01bc4a2b4fe3227a9687e5c99a1ef9a9e9b37d6bebeeb8f73",
                "size": 907,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 24107793,
                "gas_used": 46230,
                "tx_count": 1,
                "gas_limit": 60000000,
                "timestamp": "2026-06-08T09:51:29.000000Z",
                "burnt_fees": "11603730",
                "difficulty": "0",
                "base_fee_per_gas": "251"
            },
            {
                "hash": "0xc1bb14459f4f28aeabd3b05d7ab0187501e9f62b3610c16d4008ab32633c83ba",
                "size": 1133,
                "miner": "0x4200000000000000000000000000000000000011",
        
…