Deposits

Deposits queries all deposits of a single proposal.

GEThttps://coreum.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

PageResponse is to be embedded in gRPC response messages where the corresponding request message has used PageRequest.

message SomeResponse { repeated Bar results = 1; PageResponse page = 2; }

Request
const response = await fetch('https://coreum.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 proposalID, depositAddr.

GEThttps://coreum.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://coreum.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"
      }
    ]
  }
}