Spendable balances

SpendableBalances queries the spendable 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.

Since: cosmos-sdk 0.46

GEThttps://band-rest.nownodes.io/cosmos/bank/v1beta1/spendable_balances/{address}
Path parameters
address*string

address is the address to query spendable balances for.

Query parameters
Response

A successful response.

Body
balancesarray of object

balances is the spendable balances of all the coins.

paginationobject

pagination defines the pagination in the response.

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

Last updated