Proposals

Proposals queries all proposals based on given status.

GEThttps://atom.nownodes.io/cosmos/gov/v1beta1/proposals
Query parameters
Response

A successful response.

Body
proposalsarray of object

proposals defines all the requested governance proposals.

paginationobject

pagination defines the pagination in the response.

Request
const response = await fetch('https://atom.nownodes.io/cosmos/gov/v1beta1/proposals', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "proposals": [
    {
      "proposal_id": "text",
      "content": {
        "type_url": "text",
        "value": "Ynl0ZXM="
      },
      "status": "PROPOSAL_STATUS_UNSPECIFIED",
      "final_tally_result": {
        "yes": "text",
        "abstain": "text",
        "no": "text",
        "no_with_veto": "text"
      },
      "submit_time": "2024-12-21T15:49:29.283Z",
      "deposit_end_time": "2024-12-21T15:49:29.283Z",
      "total_deposit": [
        {
          "denom": "text",
          "amount": "text"
        }
      ],
      "voting_start_time": "2024-12-21T15:49:29.283Z",
      "voting_end_time": "2024-12-21T15:49:29.283Z"
    }
  ],
  "pagination": {
    "next_key": "Ynl0ZXM=",
    "total": "text"
  }
}

Proposal queries proposal details based on ProposalID.

GEThttps://atom.nownodes.io/cosmos/gov/v1beta1/proposals/{proposal_id}
Path parameters
proposal_id*string (uint64)

proposal_id defines the unique id of the proposal.

Response

A successful response.

Body
proposalobject

Proposal defines the core field members of a governance proposal.

Request
const response = await fetch('https://atom.nownodes.io/cosmos/gov/v1beta1/proposals/{proposal_id}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "proposal": {
    "proposal_id": "text",
    "content": {
      "type_url": "text",
      "value": "Ynl0ZXM="
    },
    "status": "PROPOSAL_STATUS_UNSPECIFIED",
    "final_tally_result": {
      "yes": "text",
      "abstain": "text",
      "no": "text",
      "no_with_veto": "text"
    },
    "submit_time": "2024-12-21T15:49:29.283Z",
    "deposit_end_time": "2024-12-21T15:49:29.283Z",
    "total_deposit": [
      {
        "denom": "text",
        "amount": "text"
      }
    ],
    "voting_start_time": "2024-12-21T15:49:29.283Z",
    "voting_end_time": "2024-12-21T15:49:29.283Z"
  }
}

Last updated