Cardano » Governance

History of Proposal votes.

get/governance/proposals/{tx_hash}/{cert_index}/votes

Request

  • Base URL
    https://cardano-mainnet.blockfrost.io/api/v0
  • URL
    https://cardano-mainnet.blockfrost.io/api/v0/governance/proposals/{tx_hash}/{cert_index}/votes
  • Auth
    API key in header project_id

Path parameters

tx_hashstring required

Transaction hash.

cert_indexinteger required

Index of the certificate within the proposal transaction.

Query parameters

countinteger

The number of results displayed on one page.

pageinteger

The page number for listing the results.

order'asc' | 'desc'

The ordering of items from the point of view of the blockchain, not the page listing itself. By default, we return oldest first, newest last.

Response

Return the Proposal votes

tx_hashstring required

Hash of the voting transaction.

cert_indexinteger required

Index of the certificate within the voting transaction.

voter_role'constitutional_committee' | 'drep' | 'spo' required

The role of the voter. Can be one of constitutional_committee, drep, spo.

voterstring required

The actual voter. CIP-129 Bech32 identifier: drep1..., pool1... or cc_hot1....

vote'yes' | 'no' | 'abstain' required

The Vote. Can be one of yes, no, abstain.

countedboolean required

Whether the vote counts toward the proposal's tally. Only the voter's latest vote counts, and a DRep vote stops counting if the DRep deregisters while the proposal is still live.

Example response

[
  {
    "tx_hash": "144a086c58a7b7324fba98be44a9c1560f78970ec777ede701d097936591aa4b",
    "cert_index": 0,
    "voter_role": "drep",
    "voter": "drep1mvdu8slennngja7w4un6knwezufra70887zuxpprd64jxfveahn",
    "vote": "no",
    "counted": false
  },
  {
    "tx_hash": "b302de601defdf11a5261ed31a263804dac4a582a888c998ce24dec5",
    "cert_index": 2,
    "voter_role": "drep",
    "voter": "drep1mvdu8slennngja7w4un6knwezufra70887zuxpprd64jxfveahn",
    "vote": "yes",
    "counted": true
  },
  {
    "tx_hash": "b302de601defdf11a5261ed31a263804dac4a582a888c998ce24dec5",
    "cert_index": 3,
    "voter_role": "constitutional_committee",
    "voter": "cc_hot1q0wzkpcxzzfs4mf4yk6yx7d075vqtyx2tnxsr256he6gnwq6yfy5w",
    "vote": "abstain",
    "counted": true
  }
]

Changes