Deposits

Deposits queries all deposits of a single proposal.

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

proposal_id defines the unique id of the proposal.

Query parameters
Response

A successful response.

Body
depositsarray of object

deposits defines the requested deposits.

paginationobject

pagination defines the pagination in the response.

Request
const response = await fetch('https://agoric.nownodes.io/cosmos/gov/v1beta1/proposals/{proposal_id}/deposits', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "deposits": [
    {
      "proposal_id": "text",
      "depositor": "text",
      "amount": [
        {
          "denom": "text",
          "amount": "text"
        }
      ]
    }
  ],
  "pagination": {
    "next_key": "Ynl0ZXM=",
    "total": "text"
  }
}

Deposit queries single deposit information based on proposalID, depositor address.

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

proposal_id defines the unique id of the proposal.

depositor*string

depositor defines the deposit addresses from the proposals.

Response

A successful response.

Body
depositobject

Deposit defines an amount deposited by an account address to an active proposal.

Request
const response = await fetch('https://agoric.nownodes.io/cosmos/gov/v1beta1/proposals/{proposal_id}/deposits/{depositor}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "deposit": {
    "proposal_id": "text",
    "depositor": "text",
    "amount": [
      {
        "denom": "text",
        "amount": "text"
      }
    ]
  }
}

Last updated