/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.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/corn-api/v1/block" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/corn-api/v1/block", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/corn-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/corn-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": "0x14163f2cda88467e16d530ba389b6a205b8edab80e8d3909d203a9b87b0cbf94",
"size": 1871,
"miner": "0xA4b000000000000000000073657175656e636572",
"height": 1634112,
"gas_used": 119089,
"tx_count": 2,
"gas_limit": 1125899906842624,
"timestamp": "2026-06-08T02:06:55.000000Z",
"burnt_fees": "59544500000",
"difficulty": "1",
"base_fee_per_gas": "500000"
}
},
"meta": {
"timestamp": "2026-06-08T09:51:21.877Z",
"request_id": "92e4da59-23e6-4fd4-bc16-3db7345d0d3b"
},
"status": "ok",
"message": "Block retrieved successfully",
"success": true
}