/v1/network
Chain head — best block, PoW + stake difficulty, ticket pool
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/decred-api/v1/network" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/decred-api/v1/network", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/decred-api/v1/network");
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/decred-api/v1/network",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"chain": "decred",
"source": "Decred (dcrdata)",
"consensus": "hybrid PoW/PoS",
"best_block": 1087582,
"block_hash": "fdc25cd4ec3d4bb43e59604d2f0bb775592523a4f598ec90083fea0b0f5a6e7b",
"block_time": "2026-06-10T13:53:11.000Z",
"pow_difficulty": 1741175.4701,
"block_size_bytes": 35140,
"ticket_pool_size": 40122,
"stake_difficulty_dcr": 282.57389518,
"ticket_pool_value_dcr": 11078660.3303
},
"meta": {
"timestamp": "2026-06-10T13:59:11.808Z",
"request_id": "31c41142-49e2-4af0-bb69-5821058543a5"
},
"status": "ok",
"message": "Network state retrieved successfully",
"success": true
}