Aller au contenu
GET /v1/network

Chain head — best block, difficulty, miner reward

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

Exemple de réponse

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

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