GET/cosmos/gov/v1/proposals
https://rest-babylon-mainnet.nodit.io/cosmos/gov/v1/proposalsProposals queries all proposals based on given status.
proposal_status defines the status of the proposals.
- PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status.
- PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit period.
- PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting period.
- PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has passed.
- PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has been rejected.
- PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has failed.
voter defines the voter address for the proposals.
depositor defines the deposit addresses from the proposals.
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.
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.
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.
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.
Set to true to return results in descending order.
proposal_id is the unique id of a proposal.
messages are the arbitrary messages to be executed if the proposal passes.
A URL/resource name that uniquely identifies the type of the serialized
protocol buffer message. This string must contain at least
one "/" character. The last segment of the URL's path must represent
the fully qualified name of the type (as in
path/google.protobuf.Duration). The name should be in a canonical form
(e.g., leading "." is not accepted).
In practice, teams usually precompile into the binary all types that they
expect it to use in the context of Any. However, for URLs which use the
scheme http, https, or no scheme, one can optionally set up a type
server that maps type URLs to message definitions as follows:
- If no scheme is provided,
httpsis assumed. - An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error.
- Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.)
Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com.
Schemes other than http, https (or the empty scheme) might be
used with implementation specific semantics.
Must be a valid serialized protocol buffer of the above specified type.
status defines the proposal status.
final_tally_result is the final tally result of the proposal. When querying a proposal via gRPC, this field is not populated until the proposal's voting period has ended.
yes is the number of yes votes on a proposal.
abstain is the number of abstain votes on a proposal.
no is the number of no votes on a proposal.
no_with_veto is the number of no with veto votes on a proposal.
submit_time is the time of proposal submission.
deposit_end_time is the end time for deposition.
total_deposit is the total deposit on the proposal.
Token denomination.
Amount, as an integer string in the smallest unit.
voting_start_time is the starting time to vote on a proposal.
voting_end_time is the end time of voting on a proposal.
Arbitrary attached metadata (often a link to an off-chain document).
Proposal title.
Proposal summary.
Proposer address.
Whether the proposal is expedited.
Reason the proposal failed to execute.
next_key is the key to be passed to PageRequest.key to query the next page most efficiently. It will be empty if there are no more results.
Total number of results. Populated only when pagination.count_total is set in the request.