Balances

AllBalances queries the balance of all coins for a single account.

When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.

GET//rest.origin.uptick.network/cosmos/bank/v1beta1/balances/{address}
Path parameters
address*string

address is the address to query balances for.

Query parameters
Response

A successful response.

Body
balancesarray of object

balances is the balances of all the coins.

paginationobject

pagination defines the pagination in the response.

Request
const response = await fetch('//rest.origin.uptick.network/cosmos/bank/v1beta1/balances/{address}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "balances": [
    {
      "denom": "text",
      "amount": "text"
    }
  ],
  "pagination": {
    "next_key": "Ynl0ZXM=",
    "total": "text"
  }
}

Last updated