Path Parameters
- proposal_idstringREQUIRED
The unique ID of a proposal
Query Parameters
- pagination.keystring <byte>
Key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set
- pagination.offsetstring <uint64>
Offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set
- pagination.limitstring <uint64>
The total number of results to be returned in the result page. If left empty it will default to a value to be set by each app
- pagination.count_totalboolean
Set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set
- pagination.reverseboolean
Reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43
Returns
- votesarray
Defines the queried votes
- proposal_idstring
Defines the unique id of the proposal
- voterstring
The voter address of the proposal
- optionstring
Default:
VOTE_OPTION_UNSPECIFIEDEnum:VOTE_OPTION_UNSPECIFIEDVOTE_OPTION_YESVOTE_OPTION_ABSTAINVOTE_OPTION_NOVOTE_OPTION_NO_WITH_VETODeprecated: Prefer to use options instead. This field is set in queries if and only if len(options) == 1 and that option has weight 1. In all other cases, this field will default to VOTE_OPTION_UNSPECIFIED.
- optionsarray
The weighted vote options.Since: cosmos-sdk 0.43
- optionstring
Defines the valid vote options, it must not contain duplicate vote options. Default:
VOTE_OPTION_UNSPECIFIEDEnum:VOTE_OPTION_UNSPECIFIEDVOTE_OPTION_YESVOTE_OPTION_ABSTAINVOTE_OPTION_NOVOTE_OPTION_NO_WITH_VETO
- weightstring
The vote weight associated with the vote option
- paginationobject
The pagination object which contains the following fields:
- next_keystring | null
The key to be passed to PageRequest.key to query the next page most efficiently. It will be empty if there are no more results
- totalstring
string <uint64> (total is total number of results available if PageRequest.count_total was set, its value is undefined otherwise)