Skip to main content

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:
bearerAuth
path Parameters
proposal_id
required
integer or string <int64> (proposal_id)

proposal_id is the unique ID of a proposal.

Responses

Response samples

Content type
application/json
{
  • "proposal": {
    }
}

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:
bearerAuth
path Parameters
proposal_id
required
integer or string <int64> (proposal_id)

proposal_id is the unique id of a proposal.

Responses

Response samples

Content type
application/json
{
  • "tally": {
    }
}

ProposalsByGroupPolicy

ProposalsByGroupPolicy queries proposals based on account address of group policy.

Authorizations:
bearerAuth
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

Content type
application/json
{
  • "proposals": [
    ],
  • "pagination": {
    }
}

VoteByProposalVoter

VoteByProposalVoter queries a vote by proposal id and voter.

Authorizations:
bearerAuth
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

Content type
application/json
{
  • "vote": {
    }
}

VotesByProposal

VotesByProposal queries a vote by proposal id.

Authorizations:
bearerAuth
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

Content type
application/json
{
  • "votes": [
    ],
  • "pagination": {
    }
}

VotesByVoter

VotesByVoter queries a vote by voter.

Authorizations:
bearerAuth
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

Content type
application/json
{
  • "votes": [
    ],
  • "pagination": {
    }
}