Ir al contenido
GET /v1/block

A block by height or hash

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

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

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/rootstock-api/v1/block" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/rootstock-api/v1/block", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/rootstock-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/rootstock-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": {
        "block": {
            "hash": "0xfd9acf184a68e6449078623cf469e58edaeabbcbd136384031e1caed2a3a610a",
            "size": 3952,
            "miner": "0xCe7864A8b5bF360b01099502A163810cEc845D4a",
            "height": 8922536,
            "gas_used": 251909,
            "tx_count": 4,
            "gas_limit": 10000000,
            "timestamp": "2026-06-08T00:54:31.000000Z",
            "burnt_fees": "0",
            "difficulty": "11343010210657591745246",
            "base_fee_per_gas": null
        }
    },
    "meta": {
        "timestamp": "2026-06-08T01:18:13.412Z",
        "request_id": "900bdd63-ece0-49b0-b079-f835c95508b3"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}