/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/vana-api/v1/block" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/vana-api/v1/block", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/vana-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/vana-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": "0x2436dc1c4d88897fad623df03e6f303a4173f73ec7a564f1cba4dec7284dce3d",
"size": 3895,
"miner": "0x79D7E19e88f5089CC31e925160a7252F287a51a7",
"height": 8717007,
"gas_used": 341937,
"tx_count": 9,
"gas_limit": 60000000,
"timestamp": "2026-06-08T02:56:31.000000Z",
"burnt_fees": "2393559",
"difficulty": "0",
"base_fee_per_gas": "7"
}
},
"meta": {
"timestamp": "2026-06-08T09:50:49.915Z",
"request_id": "6dba3b79-5fb1-44d3-a7cc-1e2ae7363b83"
},
"status": "ok",
"message": "Block retrieved successfully",
"success": true
}