Vai al contenuto
GET /v1/votes

A DRep's governance-action votes (Yes/No/Abstain)

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/cardanodreps-api/v1/votes" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cardanodreps-api/v1/votes", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cardanodreps-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/cardanodreps-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": "Every governance action this DRep has cast a vote on, newest first — the proposal id, the vote (Yes / No / Abstain) and when it was cast. A DRep with no votes yet returns an empty list. Omit drep_id to use the first registered DRep.",
        "count": 3,
        "votes": [
            {
                "vote": "Yes",
                "block_time": 1749086723,
                "proposal_id": "gov_action1u9x73kwufaxa70lfy59g4ynwyrcsaxdcd0gxzzmh67s9fxq4j8hqqk2phgh",
                "vote_tx_hash": "60cf99acb883cedad91ea9c51cfc79e44c03ce19daeec2e6fadafffb10680245",
                "proposal_index": 0,
                "proposal_tx_hash": "e14de8d9dc4f4ddf3fe9250a8a926e20f10e99b86bd0610b77d7a054981591ee"
            },
            {
                "vote": "No",
                "block_time": 1749083391,
                "proposal_id": "gov_action1fpqwxp2kxvnntr8hpkh9q9djm78ccdww7qlhg5safugh4stmcwzqql5lauu",
                "vote_tx_hash": "3f5e45f7ff6e6e9f6ac2e77c477848392be6991b01a014319b858ab8b16d608b",
                "proposal_index": 0,
                "proposal_tx_hash": "4840e305563327358cf70dae5015b2df8f8c35cef03f74521d4f117ac17bc384"
            },
            {
                "vote": "Yes",
                "block_time": 1749083258,
                "proposal_id": "gov_action1h4ygjv0hjfj3lmafcm76rpdzcm8vsvj9k5wejn3npyxwxm3fesnqqw9kxxz",
                "vote_tx_hash": "84ae3582634941ac38675e4e09a791543e7ca570a03c240232f73020f438076f",
                "proposal_index": 0,
                "proposal_tx_hash": "bd488931f792651fefa9c6fda185a2c6cec83245b51d994e33090ce36e29cc26"
            }
        ],
        "source": "Koios",
        "drep_id": "drep1ygqzaplr9stnt0hj4u5zt9p6nsr8zjzh687pjwzmsmjzngcdwm2a2"
    },
    "meta": {
        "timestamp": "2026-06-14T17:04:23.905Z",
        "request_id": "513dc106-de40-4f26-aaee-0761f64990b0"
    },
    "status": "ok",
    "message": "DRep votes retrieved successfully",
    "success": true
}