/v1/block
A single block by header id
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/ergo-api/v1/block" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/ergo-api/v1/block", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/ergo-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/ergo-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": "63359f6e2b35749e283540848927d3e67112c4e40e96169fd85aa0aa2967a2a2",
"height": 1804626,
"source": "Ergo Platform",
"version": 4,
"miner_pk": null,
"tx_count": 5,
"parent_id": "c51d8214c03a5d8313ce7c3888dcdab52ea1874bd6a64284738415fa419d74f0",
"timestamp": "2026-06-10T14:05:34.514Z",
"difficulty": 110969137135616,
"size_bytes": 42289
},
"meta": {
"timestamp": "2026-06-10T22:58:50.236Z",
"request_id": "578a696b-3e22-41a1-9bec-987f1cc70444"
},
"status": "ok",
"message": "Block retrieved successfully",
"success": true
}