Skip to main content

/cosmos/gov/v1/proposals/{proposal_id}/votes/{voter} REST API Endpoint

Queries voted information based on proposalID, voterAddr.

Updated on
May 09, 2024

/cosmos/gov/v1/proposals/{proposal_id}/votes/{voter} REST API Endpoint

Path Parameters

proposal_id
string
REQUIRED
The unique ID of a proposal.
voter
string
REQUIRED
The voter address for the proposal.

Returns

vote
object
Vote defines a vote on a governance proposal. A Vote consists of a proposal ID, the voter, and the vote option
proposal_id
string
Defines the unique id of the proposal
voter
string
The voter address of the proposal
option
string
Default: `VOTE_OPTION_UNSPECIFIED` Enum: `VOTE_OPTION_UNSPECIFIED` `VOTE_OPTION_YES` `VOTE_OPTION_ABSTAIN` `VOTE_OPTION_NO` `VOTE_OPTION_NO_WITH_VETO` Deprecated: 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.
options
array
Options is the weighted vote options. Since: cosmos-sdk 0.43
option
string
Defines the valid vote options, it must not contain duplicate vote options
weight
string
The vote weight associated with the vote option
Request
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free