Zum Inhalt springen
GET /v1/network

Chain state — tip block, epoch, block time, difficulty, hashrate

Live testen

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

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

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

API-Key holen

Code-Snippets

curl "https://api.oanor.com/nervos-api/v1/network" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/nervos-api/v1/network", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/nervos-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/nervos-api/v1/network",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

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

{
    "data": {
        "chain": "nervos-ckb",
        "model": "Cell model (generalised UTXO)",
        "source": "Nervos CKB",
        "consensus": "Eaglesong PoW (NC-MAX)",
        "hash_rate": 81841176830210.33,
        "epoch_index": 298,
        "epoch_length": 1534,
        "epoch_number": 14356,
        "native_token": "CKB",
        "tip_block_number": 19562575,
        "average_block_time_ms": 7361.96,
        "estimated_epoch_time_ms": 14364832.725474,
        "transactions_last_24hrs": 16503,
        "transactions_per_minute": 12,
        "current_epoch_difficulty": "766385146820022311"
    },
    "meta": {
        "timestamp": "2026-06-10T22:58:24.385Z",
        "request_id": "e25c4371-8962-4ad4-9203-f3deb4aa27e5"
    },
    "status": "ok",
    "message": "Network state retrieved successfully",
    "success": true
}