Msg

Vote defines a method to add a vote on a specific proposal.

post/cosmos.gov.v1.Msg/Vote

Request body

metadatastring

metadata is any arbitrary metadata attached to the Vote.

option'VOTE_OPTION_UNSPECIFIED' | 'VOTE_OPTION_YES' | 'VOTE_OPTION_ABSTAIN' | 'VOTE_OPTION_NO' | 'VOTE_OPTION_NO_WITH_VETO'

VoteOption enumerates the valid vote options for a given governance proposal.

  • VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option.
  • VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option.
  • VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option.
  • VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option.
  • VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option.
proposal_idstring uint64

proposal_id defines the unique id of the proposal.

voterstring

voter is the voter address for the proposal.

Response

A successful response.

CosmosGovV1MsgVoteResponse required

MsgVoteResponse defines the Msg/Vote response type.

Changes