SubaccountBalancesList

subaccountBalancesList InjectiveAccountsRPC

get

List subaccount balances for the provided denoms.

Path parameters
subaccountIdstring · min: 66 · max: 66Required

SubaccountId of the trader we want to get the trades from

Example: 0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002Pattern: ^0x[0-9a-fA-F]{64}$
Query parameters
denomsstring[]Optional

Filter balances by denoms. If not set, the balances of all the denoms for the subaccount are provided.

Example: ["peggy0xdAC17F958D2ee523a2206206994597C13D831ec7","peggy0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"]
Responses
200
OK response.
application/json
get
GET /api/exchange/account/v1/subaccountBalancesList/{subaccountId} HTTP/1.1
Host: inj-indexer.nownodes.io
Accept: */*
{
  "balances": [
    {
      "accountAddress": "inj1cml96vmptgw99syqrrz8az79xer2pcgp0a885r",
      "denom": "peggy0xdAC17F958D2ee523a2206206994597C13D831ec7",
      "deposit": {
        "availableBalance": "1000000000000000000",
        "totalBalance": "1960000000000000000"
      },
      "subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002"
    },
    {
      "accountAddress": "inj1cml96vmptgw99syqrrz8az79xer2pcgp0a885r",
      "denom": "peggy0xdAC17F958D2ee523a2206206994597C13D831ec7",
      "deposit": {
        "availableBalance": "1000000000000000000",
        "totalBalance": "1960000000000000000"
      },
      "subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002"
    }
  ]
}