/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/celo-api/v1/block" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/celo-api/v1/block", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/celo-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/celo-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": "0xf8d968354950561efffe7cb6f3afd2552977089cf154d69fc43c4681658f7a53",
"size": 18486,
"miner": "0xbf5049910Db82E8c92B7158c959330BFe5cC135e",
"height": 25000000,
"gas_used": 5044549,
"tx_count": 23,
"gas_limit": 50000000,
"timestamp": "2024-04-09T13:49:19.000000Z",
"burnt_fees": "25222745000000000",
"difficulty": "0",
"base_fee_per_gas": "5000000000"
}
},
"meta": {
"timestamp": "2026-06-08T01:18:34.953Z",
"request_id": "a56c3e6d-fb6c-45a0-864b-33aed350a300"
},
"status": "ok",
"message": "Block retrieved successfully",
"success": true
}