Zum Inhalt springen
GET /v1/network

Chain head — best block, difficulty, miner reward

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "chain": "ergo",
        "model": "extended UTXO (eUTXO)",
        "source": "Ergo Platform",
        "block_id": "e561e16ca01c0d19a116557b93f93c5791eceabd33ab400ce3ff3405157619bc",
        "tx_count": 4,
        "consensus": "Autolykos v2 PoW",
        "best_block": 1804874,
        "block_time": "2026-06-10T22:54:03.743Z",
        "difficulty": 101914591100928,
        "native_token": "ERG",
        "total_blocks": 1804874,
        "miner_reward_erg": 3
    },
    "meta": {
        "timestamp": "2026-06-10T22:58:49.747Z",
        "request_id": "db80f0c8-8950-4921-8853-46c5171ad2cb"
    },
    "status": "ok",
    "message": "Network state retrieved successfully",
    "success": true
}