Vai al contenuto
GET /v1/proposals

Governance proposals, newest first

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/snapshot-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "count": 3,
        "filter": {
            "space": "dorg.eth",
            "state": "active"
        },
        "source": "Snapshot",
        "proposals": [
            {
                "id": "0x19e9fbada7ef4223f7bbd699fae3a1d0ca0293db6004929da5e524b255e138f3",
                "end": "2026-06-16T13:19:39.000Z",
                "space": {
                    "id": "dorg.eth",
                    "name": "dOrg"
                },
                "start": "2026-06-11T13:19:39.000Z",
                "state": "active",
                "title": "Treasury Consolidation & On-Chain Migration Proposal",
                "votes": 4,
                "author": "0x10f9bE5244F9D12F22A35e927D18660e1b36546f",
                "choices": [
                    "For",
                    "Against",
                    "Abstain"
                ],
                "scores_total": 1038995
            },
            {
                "id": "0x00555275219e8408d66f5837302267b12bb297704ffd45fc68cf71362c11c387",
                "end": "2026-06-16T08:18:52.000Z",
                "space": {
                    "id": "dorg.eth",
                    "name": "dOrg"
                },
                "start": "2026-06-11T08:18:52.000Z",
                "state": "active",
                "title": "Immediate Emergency Suspension of Treasury Outflows",
                "votes": 7,
                "author": "0x584a59133c269A19Add6c5758032F1f1334ee573",
                "choices": [
                    "For",
                    "Against",
                    "Abstain"
                ],
                "scores_total": 2196577
            },
            {
                "id": "0x0704abf97bc2cdb7755fb427f08c0b00ed4c81ba1a0ef149374f1d408ff74348",
                "end": "2026-06-14T14:25:51.000Z",
                "space": {
                    "id": "dorg.eth",
                    "name": "dOrg"
                },
                "start": "2026-06-09T14:25:51.000Z",
                "state": "active",
                "title": "testing snapshot",
                "votes": 0,
                "author": "0xC5d5851A81aFC92D49266f73824c2701730b8A6d",
                "choices": [
                    "For",
                    "Against",
                    "Abstain"
                ],
                "scores_total": 0
            }
        ]
    },
    "meta": {
        "timestamp": "2026-06-11T16:46:53.212Z",
        "request_id": "ee3cbe0c-9930-4566-9643-810f64ef07bd"
    },
    "status": "ok",
    "message": "Proposals retrieved successfully",
    "success": true
}