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

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

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/hemi-api/v1/blocks" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hemi-api/v1/blocks", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hemi-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/hemi-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": "0x332e79ea0ea0e5291cba0b014c390253e1f643b99c2fb5b6894a21872c548b2c",
                "size": 896,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 4587128,
                "gas_used": 54544,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:50:47.000000Z",
                "burnt_fees": "13745088",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0xa656c0643e9ceab93cb6206685c85f0a5e140e36934ef534629ff4ffd25efca8",
                "size": 896,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 4587127,
                "gas_used": 54544,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:50:35.000000Z",
                "burnt_fees": "13745088",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0xd0874874aaec7be1c7aa6be5ea90dc177e0e1ae885c425a1525f874e2a85d896",
                "size": 896,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 4587126,
                "gas_used": 54544,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:50:23.000000Z",
                "burnt_fees": "13745088",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0xcc6cbcc3407b685bfaa11463edce033f52506c3e7a1d55d9ab170486a2939d56",
                "size": 2075,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 4587125,
                "gas_used": 173448,
                "tx_count": 2,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:50:11.000000Z",
                "burnt_fees": "43708896",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0x5fff2f8cadb855173f5cb7d64a7c2b3cc0dccf68038ced0f0d51b811b8e37223",
                "size": 2719,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 4587124,
                "gas_used": 480983,
                "tx_count": 2,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:49:59.000000Z",
                "burnt_fees": "121207716",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0xe29ee5cdb068d0582d801e4f022e532b1fceb75080466064299af71471e39033",
                "size": 896,
                "miner": "0x4200000000000000000000000000000000000011",
                "hei
…