Naar de inhoud
GET /v1/summary

A proposal's voting tally by DRep/SPO/committee

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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

{
    "data": {
        "drep": {
            "no_pct": 80.07,
            "yes_pct": 19.93,
            "no_power_ada": 4635834362.447173,
            "no_votes_cast": 5,
            "yes_power_ada": 1153688840.107432,
            "yes_votes_cast": 39,
            "abstain_votes_cast": 3
        },
        "note": "The live voting tally for one governance action, broken down by the three governance bodies — DReps, stake pools (SPOs) and the constitutional committee — with each body's Yes / No / Abstain vote counts, voting power (ADA) and percentages. Omit proposal_id to use the latest proposal.",
        "pool": {
            "no_pct": 0,
            "yes_pct": 0,
            "no_votes_cast": 0,
            "yes_votes_cast": 0
        },
        "source": "Koios",
        "epoch_no": 637,
        "committee": {
            "yes_pct": 0,
            "no_votes_cast": 0,
            "yes_votes_cast": 0
        },
        "proposal_id": "gov_action1654yj97lf7guxsh27phtknq2tsc4dajp95fh7vrucaltjy0502csq7qtkhq",
        "proposal_type": "TreasuryWithdrawals"
    },
    "meta": {
        "timestamp": "2026-06-14T17:04:17.196Z",
        "request_id": "dee8b7fa-7ba3-40e6-9f7e-3fe9878ccaa2"
    },
    "status": "ok",
    "message": "Proposal voting summary retrieved successfully",
    "success": true
}