/v1/votes
Votes cast on a proposal, by voting power
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/snapshot-api/v1/votes" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/snapshot-api/v1/votes", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/snapshot-api/v1/votes");
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/snapshot-api/v1/votes",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"note": "choice is the 1-based index into the proposal's choices; voting_power is token-weighted.",
"count": 4,
"votes": [
{
"voter": "0x584a59133c269A19Add6c5758032F1f1334ee573",
"choice": 1,
"created": "2026-06-11T13:37:11.000Z",
"voting_power": 529897
},
{
"voter": "0x10f9bE5244F9D12F22A35e927D18660e1b36546f",
"choice": 1,
"created": "2026-06-11T13:21:15.000Z",
"voting_power": 396032
},
{
"voter": "0x25E939E1c57b3E1165fcB4870bAb2569DA0CD4aC",
"choice": 1,
"created": "2026-06-11T13:53:09.000Z",
"voting_power": 91584
},
{
"voter": "0x4e046884b06946847F7aE1298AdC07F7d20c1A53",
"choice": 1,
"created": "2026-06-11T13:22:28.000Z",
"voting_power": 21482
}
],
"source": "Snapshot",
"proposal": "0x19e9fbada7ef4223f7bbd699fae3a1d0ca0293db6004929da5e524b255e138f3"
},
"meta": {
"timestamp": "2026-06-11T16:46:53.784Z",
"request_id": "1293c1c5-9ea8-4838-97a8-08cef5b18d44"
},
"status": "ok",
"message": "Votes retrieved successfully",
"success": true
}