/v1/representative
One representative: weight, share, principal & online status
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
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_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}