/v1/current
The current voting period: kind, status, ballot tally, quorum, supermajority
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/tezosgov-api/v1/current" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/tezosgov-api/v1/current", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/tezosgov-api/v1/current");
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/tezosgov-api/v1/current",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"kind": "promotion",
"note": "The current Tezos voting period. kind is one of proposal / exploration / cooldown / promotion / adoption. In ballot periods, yay/nay/pass voting power and the quorum & supermajority thresholds decide whether the amendment passes.",
"epoch": 90,
"index": 175,
"source": "TzKT",
"status": "active",
"nay_pct": 0,
"yay_pct": 27.97,
"end_time": "2026-06-15T21:17:25Z",
"pass_pct": 33.18,
"last_level": 13656288,
"start_time": "2026-06-01T13:34:49Z",
"first_level": 13454689,
"nay_ballots": 0,
"yay_ballots": 61,
"pass_ballots": 19,
"total_bakers": 218,
"supermajority_pct": 80,
"ballots_quorum_pct": 49.18,
"nay_voting_power_xtz": 0,
"yay_voting_power_xtz": 183636528.51415,
"pass_voting_power_xtz": 217850754.265983,
"total_voting_power_xtz": 656635662.773932
},
"meta": {
"timestamp": "2026-06-14T08:03:46.467Z",
"request_id": "bf39fc87-d405-4bd8-8a1a-02f7b9f083a2"
},
"status": "ok",
"message": "Current period retrieved successfully",
"success": true
}