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

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

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/orderly-api/v1/blocks" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/orderly-api/v1/blocks", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/orderly-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/orderly-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": "0x91b28706c9cae7f38d23382fa2564372a3eebecd5c5aab767ab3e337e72e0b18",
                "size": 1695,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 42152000,
                "gas_used": 115870,
                "tx_count": 2,
                "gas_limit": 180000000,
                "timestamp": "2026-06-08T09:50:27.000000Z",
                "burnt_fees": "28967500",
                "difficulty": "0",
                "base_fee_per_gas": "250"
            },
            {
                "hash": "0x64ef14a628beea6e5f2645d06033eccd4619850c36ff7be3f33a1c3fa0eabb8b",
                "size": 2543,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 42151999,
                "gas_used": 193225,
                "tx_count": 3,
                "gas_limit": 180000000,
                "timestamp": "2026-06-08T09:50:25.000000Z",
                "burnt_fees": "48306250",
                "difficulty": "0",
                "base_fee_per_gas": "250"
            },
            {
                "hash": "0x255011c2e34bc725f6ea3ce902301acfea3e650f8ec3bcdade8512e1c4e2d8f6",
                "size": 907,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 42151998,
                "gas_used": 46194,
                "tx_count": 1,
                "gas_limit": 180000000,
                "timestamp": "2026-06-08T09:50:23.000000Z",
                "burnt_fees": "11548500",
                "difficulty": "0",
                "base_fee_per_gas": "250"
            },
            {
                "hash": "0xe92621aac5b7ce14a598b7e78580c16a9762941c4805ef1c8f18ac2aa1a72c75",
                "size": 907,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 42151997,
                "gas_used": 57382,
                "tx_count": 1,
                "gas_limit": 180000000,
                "timestamp": "2026-06-08T09:50:21.000000Z",
                "burnt_fees": "14345500",
                "difficulty": "0",
                "base_fee_per_gas": "250"
            },
            {
                "hash": "0xb7ffff13b82b7740edbdc682e7a9176d492bf9c950c01cbcdaad815231ad8429",
                "size": 907,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 42151996,
                "gas_used": 46194,
                "tx_count": 1,
                "gas_limit": 180000000,
                "timestamp": "2026-06-08T09:50:19.000000Z",
                "burnt_fees": "11548500",
                "difficulty": "0",
                "base_fee_per_gas": "250"
            },
            {
                "hash": "0x2c021bb74ee6eec3fe3ddccb07a77ea7637bddbcc2f39695988129729eaa132e",
                "size": 907,
                "miner": "0x4200000000000000000000000000000000000011",
           
…