/v1/block
Block detail 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.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/japanopenchain-api/v1/block" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/japanopenchain-api/v1/block", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/japanopenchain-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/japanopenchain-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": "0x96c905675df34e70744f69544873d0b686e385b0cfdc74673a31e1f973022b15",
"size": 731,
"miner": "0xB641f142049215EAc3BE10A6d2b7F2f674270130",
"height": 24260000,
"gas_used": 21000,
"tx_count": 1,
"gas_limit": 470000000,
"timestamp": "2026-06-08T11:56:44.000000Z",
"burnt_fees": "147000",
"difficulty": "2",
"base_fee_per_gas": "7"
}
},
"meta": {
"timestamp": "2026-06-08T18:25:26.214Z",
"request_id": "20e9264d-1717-4d4d-ad0c-6e639c1d7e69"
},
"status": "ok",
"message": "Block retrieved successfully",
"success": true
}