Aller au contenu
GET /v1/network

Chain head — best block, PoW + stake difficulty, ticket pool

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/decred-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "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
}