Gets a balance for specific coin denom
SubaccountId of the trader we want to get the trades from
"0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002"
^0x[0-9a-fA-F]{64}$
Specify denom to get balance
"inj"
OK response.
const response = await fetch('https://inj-indexer.nownodes.io/api/exchange/account/v1/subaccountBalances/{subaccountId}/{denom}', { method: 'GET', headers: {}, }); const data = await response.json();
{ "balance": { "accountAddress": "inj1cml96vmptgw99syqrrz8az79xer2pcgp0a885r", "denom": "peggy0xdAC17F958D2ee523a2206206994597C13D831ec7", "deposit": { "availableBalance": "1000000000000000000", "totalBalance": "1960000000000000000" }, "subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002" } }