Get Balances
/getBalances
This method allows to check ETH balances and balances of all tokens for several accounts at the same time
-
GET | POST /getBalances
{ chainId, ownerAddresses, tokenList }
***→{ … }
***Where:
- ownerAddresses (required) - Array of addresses
- chainId (required) - Got from previous step
- tokenList (optional) - Array of token addresses
- checkAllowanceAddress (optional) - Check the allowance to spend tokens from tokenList
Response:
{
"0xae2....FaE13":
{
"balance": "154225482844510188707",
"tokens":
[
{
"balance":"75000000",
"symbol":"USDT",
"decimals":"6",
"name":"Tether USD",
"allowance" : 0
}
,
{
"balance":"1111000000000000000000",
"symbol":"JAM",
"decimals":"18",
"name":"Geojam",
"allowance" : 0
}
]
}
}