get deprecatedhttps://cosmos-mainnet-archive.allthatnode.com:1317/cosmos/gov/v1beta1/proposals
Queries all proposals based on given status.
All That Node prohibits this method for stability.
Parameters
Query
proposal_status
:STRING
- The status of the proposals. (Default value : PROPOSAL_STATUS_UNSPECIFIED)PROPOSAL_STATUS_UNSPECIFIED
: the default proposal status.PROPOSAL_STATUS_DEPOSIT_PERIOD
: a proposal status during the deposit period.PROPOSAL_STATUS_VOTING_PERIOD
: a proposal status during the voting period.PROPOSAL_STATUS_PASSED
: a proposal status of a proposal that has passed.PROPOSAL_STATUS_REJECTED
: a proposal status of a proposal that has been rejected.- PROPOSAL_STATUS_FAILED: a proposal status of a proposal that has failed.
voter
:STRING
- The voter address for the proposals.depositor
:STRING
- The deposit addresses from the proposals.pagination.key
:STRING
- (base64) (optional) 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
- (optional) 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
:STRING
- (optional) 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.count_total
:BOOLEAN
- (optional) count_total is set totrue
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
- (optional) reverse is set to true if results are to be returned in the descending order.
curl "https://cosmos-mainnet-archive.allthatnode.com:1317/cosmos/gov/v1beta1/proposals" \
-H 'x-allthatnode-api-key: 8U3JLUhzIDg3GShvy9hkCCSYkLGc11kj'
Returns
OBJECT
- Proposals information.
{
"proposals": [
{
"proposal_id": "string",
"content": {
"type_url": "string",
"value": "string"
},
"status": "PROPOSAL_STATUS_UNSPECIFIED",
"final_tally_result": {
"yes": "string",
"abstain": "string",
"no": "string",
"no_with_veto": "string"
},
"submit_time": "2023-08-07T10:43:36.790Z",
"deposit_end_time": "2023-08-07T10:43:36.790Z",
"total_deposit": [
{
"denom": "string",
"amount": "string"
}
],
"voting_start_time": "2023-08-07T10:43:36.790Z",
"voting_end_time": "2023-08-07T10:43:36.790Z"
}
],
"pagination": {
"next_key": "string",
"total": "string"
}
}