By denom

SpendableBalanceByDenom queries the spendable balance of a single denom 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.47

GEThttps://inj.nownodes.io/cosmos/bank/v1beta1/spendable_balances/{address}/by_denom
Path parameters
address*string

address is the address to query balances for.

Query parameters
Response

A successful response.

Body
balanceobject

Coin defines a token with a denomination and an amount.

NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto.

Request
const response = await fetch('https://inj.nownodes.io/cosmos/bank/v1beta1/spendable_balances/{address}/by_denom', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "balance": {
    "denom": "text",
    "amount": "text"
  }
}