/v1/representative
One representative: weight, share, principal & online status
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
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_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"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
}