Download OpenAPI specification:Download
API Documentation for Multisigner Proposals Voting
Proposal queries a proposal based on proposal id.
| proposal_id required | integer or string <int64> (proposal_id) proposal_id is the unique ID of a proposal. |
{- "proposal": {
- "id": 0,
- "groupPolicyAddress": "string",
- "metadata": "string",
- "proposers": [
- "string"
], - "submitTime": "2023-01-15T01:30:15.01Z",
- "groupVersion": 0,
- "groupPolicyVersion": 0,
- "status": "PROPOSAL_STATUS_UNSPECIFIED",
- "finalTallyResult": {
- "yesCount": "string",
- "abstainCount": "string",
- "noCount": "string",
- "noWithVetoCount": "string"
}, - "votingPeriodEnd": "2023-01-15T01:30:15.01Z",
- "executorResult": "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED",
- "messages": [
- {
- "type": "string",
- "value": "string"
}
], - "title": "string",
- "summary": "string"
}
}TallyResult returns the tally result of a proposal. If the proposal is
still in voting period, then this query computes the current tally state,
which might not be final. On the other hand, if the proposal is final,
then it simply returns the final_tally_result state stored in the
proposal itself.
| proposal_id required | integer or string <int64> (proposal_id) proposal_id is the unique id of a proposal. |
{- "tally": {
- "yesCount": "string",
- "abstainCount": "string",
- "noCount": "string",
- "noWithVetoCount": "string"
}
}ProposalsByGroupPolicy queries proposals based on account address of group policy.
| address required | string (address) address is the account address of the group policy related to proposals. |
| pagination.key | string <byte> (key) 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.offset | integer or string <int64> (offset) 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.limit | integer or string <int64> (limit) limit is 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.countTotal | boolean (count_total) count_total is 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.reverse | boolean (reverse) reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
{- "proposals": [
- {
- "id": 0,
- "groupPolicyAddress": "string",
- "metadata": "string",
- "proposers": [
- "string"
], - "submitTime": "2023-01-15T01:30:15.01Z",
- "groupVersion": 0,
- "groupPolicyVersion": 0,
- "status": "PROPOSAL_STATUS_UNSPECIFIED",
- "finalTallyResult": {
- "yesCount": "string",
- "abstainCount": "string",
- "noCount": "string",
- "noWithVetoCount": "string"
}, - "votingPeriodEnd": "2023-01-15T01:30:15.01Z",
- "executorResult": "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED",
- "messages": [
- {
- "type": "string",
- "value": "string"
}
], - "title": "string",
- "summary": "string"
}
], - "pagination": {
- "nextKey": "string",
- "total": 0
}
}VoteByProposalVoter queries a vote by proposal id and voter.
| proposal_id required | integer or string <int64> (proposal_id) proposal_id is the unique ID of a proposal. |
| voter required | string (voter) voter is a proposal voter account address. |
{- "vote": {
- "proposalId": 0,
- "voter": "string",
- "option": "VOTE_OPTION_UNSPECIFIED",
- "metadata": "string",
- "submitTime": "2023-01-15T01:30:15.01Z"
}
}VotesByProposal queries a vote by proposal id.
| proposal_id required | integer or string <int64> (proposal_id) proposal_id is the unique ID of a proposal. |
| pagination.key | string <byte> (key) 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.offset | integer or string <int64> (offset) 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.limit | integer or string <int64> (limit) limit is 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.countTotal | boolean (count_total) count_total is 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.reverse | boolean (reverse) reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
{- "votes": [
- {
- "proposalId": 0,
- "voter": "string",
- "option": "VOTE_OPTION_UNSPECIFIED",
- "metadata": "string",
- "submitTime": "2023-01-15T01:30:15.01Z"
}
], - "pagination": {
- "nextKey": "string",
- "total": 0
}
}VotesByVoter queries a vote by voter.
| voter required | string (voter) voter is a proposal voter account address. |
| pagination.key | string <byte> (key) 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.offset | integer or string <int64> (offset) 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.limit | integer or string <int64> (limit) limit is 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.countTotal | boolean (count_total) count_total is 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.reverse | boolean (reverse) reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43 |
{- "votes": [
- {
- "proposalId": 0,
- "voter": "string",
- "option": "VOTE_OPTION_UNSPECIFIED",
- "metadata": "string",
- "submitTime": "2023-01-15T01:30:15.01Z"
}
], - "pagination": {
- "nextKey": "string",
- "total": 0
}
}