Zum Inhalt springen
GET /v1/network

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

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/decred-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

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