EVM Token Balances
Returns balance updates on Ethereum, where balance update address is 0x742d…f44e, 0x6e6a…7a07 or 1 more and currency smart contract is 0xa0b8…eb48: smart contract, currency symbol, decimals, sum of balance update amount and balance update address.
What it returns
- smart contract
- currency symbol
- decimals
- sum of balance update amount
- balance update address
Filters
- balance update address is 0x742d…f44e, 0x6e6a…7a07 or 1 more
- currency smart contract is 0xa0b8…eb48
The query
query TokenBalances($addresses: [String!]!, $tokens: [String!]!) {
EVM(dataset: archive, network: eth) {
BalanceUpdates(
where: {BalanceUpdate: {Address: {in: $addresses}}, Currency: {SmartContract: {in: $tokens}}}
) {
Currency {
SmartContract
Symbol
Decimals
}
balance: sum(of: BalanceUpdate_Amount)
BalanceUpdate {
Address
}
}
}
}
Variables
{
"addresses": [
"0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"0x6e6a5Ade90e60aE883f0B35fb2E8D8f66e5D7a07",
"0x742d35Cc6634C0532925a3b844Bc454e4438f450"
],
"tokens": [
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
]
}
Similar queries
- eth balance · Ethereum · BalanceUpdates
- Ethereum balance view · Ethereum · BalanceUpdates
- Balance update API explanation · Ethereum · BalanceUpdates
- MyQuery EVM · BNB Chain · BalanceUpdates
- usdt_holder_balance_update_ · Ethereum · BalanceUpdates