Naar de inhoud
GET /v1/stats

Live election overview: active 27, candidates, total votes, total blocks

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/tronsr-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "note": "Live Tron SR election overview: the active 27 block-producers, the candidate pool, the total frozen-TRX votes cast across all witnesses and the all-time blocks produced.",
        "source": "TronScan",
        "top_sr": {
            "name": "Poloniex",
            "votes": 5109622831,
            "address": "TJvaAeFb8Lykt9RQcVyyTFN2iDvGMuyD4M",
            "vote_pct": 11.5076
        },
        "total_votes": 44402327796,
        "active_sr_count": 27,
        "candidate_count": 100,
        "total_witnesses": 438,
        "total_blocks_produced": 83584946
    },
    "meta": {
        "timestamp": "2026-06-14T08:03:43.922Z",
        "request_id": "3354d622-91db-4936-8d28-efac23d5a5a7"
    },
    "status": "ok",
    "message": "Stats retrieved successfully",
    "success": true
}