watch_getTokenBalances
Returns token balances for a specific address given a list of contracts.
This method returns hex encoded values in the tokenBalance
fields.
Parameters
DATA
, 20 Bytes - The address for which token balances will be checkedOne of:
Array
- A list of contract addressesThe
String
"DEFAULT_TOKENS" - denotes a query for the top 100 tokens by 24 hour volume
Returns
Object
- An object with the following fields:
address
:DATA
, 20 Bytes - The address for which token balances were checkedtoken_balances
:Array
- returns an array of token balance objects. Each object contains:contractAddress
tokenBalance
error
One of
tokenBalance
orerror
will be null.
Request example
Result
Last updated