Ir al contenido
GET /v1/representative

One representative: weight, share, principal & online status

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/nanoreps-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

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