Zum Inhalt springen
GET /v1/representative

One representative: weight, share, principal & online status

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "note": "A single Nano representative's delegated voting weight (in NANO), its share of online stake, whether it is a principal representative and whether it is currently online and voting. Omit account for the top online representative.",
        "source": "Nano RPC",
        "account": "nano_3rw4un6ys57hrb39sy1qx8qy5wukst1iiponztrz9qiz6qqa55kxzx4491or",
        "is_online": true,
        "weight_pct": 1.8042,
        "weight_nano": 1572962.75,
        "is_principal": true
    },
    "meta": {
        "timestamp": "2026-06-14T17:04:36.128Z",
        "request_id": "ac2c8c45-6a25-4571-914d-1a87ac663635"
    },
    "status": "ok",
    "message": "Representative retrieved successfully",
    "success": true
}