/v1/block
A block by height: hash, timestamp, tx count, size, weight
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/liquid-api/v1/block" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/liquid-api/v1/block", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/liquid-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/liquid-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": {
"id": "75abdf85fa4e465cb9d9dabed728583f291a8123f50c6d99f71894f22da7e648",
"note": "A Liquid block by height: its hash, previous block, timestamp, transaction count, size and weight. Omit height for the current tip block.",
"size": 1776,
"height": 3000000,
"source": "Blockstream esplora (Liquid)",
"weight": 6975,
"tx_count": 1,
"timestamp": 1724373428,
"median_time": 1724373127,
"previous_block": "14e50221a4a7b796f0d29a8219549d9d6687d51bd2aa9b7abeb8b42443bb6dd1"
},
"meta": {
"timestamp": "2026-06-14T17:04:30.004Z",
"request_id": "3e3900f0-9294-4991-bc4a-a415ae8dda28"
},
"status": "ok",
"message": "Block retrieved successfully",
"success": true
}