SubaccountBalancesList
List subaccount balances for the provided denoms.
Path parameters
subaccountIdstring · min: 66 · max: 66RequiredExample:
SubaccountId of the trader we want to get the trades from
0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002
Pattern: ^0x[0-9a-fA-F]{64}$
Query parameters
denomsstring[]OptionalExample:
Filter balances by denoms. If not set, the balances of all the denoms for the subaccount are provided.
["peggy0xdAC17F958D2ee523a2206206994597C13D831ec7","peggy0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"]
Responses
200
OK response.
application/json
400
Bad Request response.
application/vnd.goa.error
404
Not Found response.
application/vnd.goa.error
500
Internal Server Error response.
application/vnd.goa.error
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"
}
]
}