Proposals & Voting
Multisigner Proposals Voting (v1.0.0)
Download OpenAPI specification:Download
API Documentation for Multisigner Proposals Voting
Proposal
Proposal queries a proposal based on proposal id.
Authorizations:
path Parameters
| proposal_id required | integer or string <int64> (proposal_id) proposal_id is the unique ID of a proposal. |
Responses
Response samples
- 200
{- "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
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.
Authorizations:
path Parameters
| proposal_id required | integer or string <int64> (proposal_id) proposal_id is the unique id of a proposal. |
Responses
Response samples
- 200
{- "tally": {
- "yesCount": "string",
- "abstainCount": "string",
- "noCount": "string",
- "noWithVetoCount": "string"
}
}ProposalsByGroupPolicy
ProposalsByGroupPolicy queries proposals based on account address of group policy.
Authorizations:
path Parameters
| address required | string (address) address is the account address of the group policy related to proposals. |
query Parameters
| 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 |
Responses
Response samples
- 200
{- "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
VoteByProposalVoter queries a vote by proposal id and voter.
Authorizations:
path Parameters
| 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. |
Responses
Response samples
- 200
{- "vote": {
- "proposalId": 0,
- "voter": "string",
- "option": "VOTE_OPTION_UNSPECIFIED",
- "metadata": "string",
- "submitTime": "2023-01-15T01:30:15.01Z"
}
}VotesByProposal
VotesByProposal queries a vote by proposal id.
Authorizations:
path Parameters
| proposal_id required | integer or string <int64> (proposal_id) proposal_id is the unique ID of a proposal. |
query Parameters
| 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 |
Responses
Response samples
- 200
{- "votes": [
- {
- "proposalId": 0,
- "voter": "string",
- "option": "VOTE_OPTION_UNSPECIFIED",
- "metadata": "string",
- "submitTime": "2023-01-15T01:30:15.01Z"
}
], - "pagination": {
- "nextKey": "string",
- "total": 0
}
}VotesByVoter
VotesByVoter queries a vote by voter.
Authorizations:
path Parameters
| voter required | string (voter) voter is a proposal voter account address. |
query Parameters
| 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 |
Responses
Response samples
- 200
{- "votes": [
- {
- "proposalId": 0,
- "voter": "string",
- "option": "VOTE_OPTION_UNSPECIFIED",
- "metadata": "string",
- "submitTime": "2023-01-15T01:30:15.01Z"
}
], - "pagination": {
- "nextKey": "string",
- "total": 0
}
}