proposal
Get proposal's votes
Changed onReturns a paginated list of governance votes for the given proposal. Can be filtered by vote option (yes/no/no_with_veto/abstain), voter type (address or validator), and specific voter address.
get/proposal/{id}/votes
Request
- Base URLapi-mainnet.celenium.io (relative, and the document was published on a file host, not at the API’s origin)
- AuthAPI key in header apikey
Path parameters
idinteger required
Internal identity
Query parameters
limitinteger
Count of requested entities
offsetinteger
Offset
optionstring[]
Option
voter'address' | 'validator'
Voter type
addressstring
Voter address
validatorstring
Voter address
Response
OK
Example response
[
{
"deposit_time": "2023-07-04T03:10:57+00:00",
"height": 100,
"id": 321,
"proposal": {
"description": "Some proposal description",
"id": 321,
"status": "active",
"title": "Proposal title"
},
"proposal_id": 2,
"status": "yes",
"validator": {
"cons_address": "E641C7A2C964833E556AEF934FBF166B712874B6",
"id": 321,
"moniker": "Easy 2 Stake"
},
"voter": {
"celestials": {
"image_url": "https://ipfs.io/ipfs/QmUi269vE25fagqhyMCCTNSoiW6x4LHCwwQb3keSrEXAmC",
"name": "name",
"primary": true,
"status": "VERIFIED"
},
"hash": "celestia1jc92qdnty48pafummfr8ava2tjtuhfdw774w60"
},
"voter_id": 1,
"weight": "12345678"
}
]Changes
- info
the
queryrequest parameteroptionbecame optional - info
the
queryrequest parametervoterbecame optional
- info
- breaking
added the new path request parameter
id - breaking
added the new required
queryrequest parameteroption - breaking
added the new required
queryrequest parametervoter - warning
deleted the
pathrequest parameteroption - warning
deleted the
pathrequest parametervoter - info
added the new optional
queryrequest parameteraddress - info
added the new optional
queryrequest parametervalidator
- breaking