Vote by proposal voter

VoteByProposalVoter queries a vote by proposal id and voter.

GEThttps://coreum.nownodes.io/cosmos/group/v1/vote_by_proposal_voter/{proposal_id}/{voter}
Path parameters
proposal_id*string (uint64)

proposal_id is the unique ID of a proposal.

voter*string

voter is a proposal voter account address.

Response

A successful response.

Body
votecosmos.group.v1.Vote (object)

Vote represents a vote for a proposal.

Request
const response = await fetch('https://coreum.nownodes.io/cosmos/group/v1/vote_by_proposal_voter/{proposal_id}/{voter}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "vote": {
    "proposal_id": "text",
    "voter": "text",
    "option": "VOTE_OPTION_UNSPECIFIED",
    "metadata": "text",
    "submit_time": "2024-11-12T22:44:36.505Z"
  }
}