/v1/block
Block by number (or latest)
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/songbird-api/v1/block" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/songbird-api/v1/block", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/songbird-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/songbird-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": {
"hash": "0x7729ff25f26b42e89df8e33dbcb2183547e28ef972cc7fe63421d44ba627df15",
"chain": "Songbird",
"miner": "0x0100000000000000000000000000000000000000",
"number": 5000000,
"gas_used": 469532,
"tx_count": 1,
"gas_limit": 8000000,
"timestamp": 1640396749,
"size_bytes": 1528,
"parent_hash": "0xb07d0aa67571ddf3a1993ca3bf53fec6deaca446dcb6023b874312eb01c078f9",
"timestamp_iso": "2021-12-25T01:45:49.000Z"
},
"meta": {
"timestamp": "2026-06-15T20:40:22.582Z",
"request_id": "f46218ef-c19a-4e68-bf3f-96cc07fdf60c"
},
"status": "ok",
"message": "Songbird block retrieved",
"success": true
}