Zum Inhalt springen
GET /v1/stats

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

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten 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
}