eth balance api for specific tokens
Returns balance updates on Ethereum, where balance update address is 0x28c6…1d60 and currency smart contract is 0x, 0xa0b8…eb48 or 2 more: currency symbol, native, smart contract, sum of balance update amount and balance update address.
What it returns
- currency symbol
- native
- smart contract
- sum of balance update amount
- balance update address
Filters
- balance update address is 0x28c6…1d60
- currency smart contract is 0x, 0xa0b8…eb48 or 2 more
The query
query EvmNetworkBalanceQuery($wallets: [String!], $network: evm_network!) {
EVM(dataset: archive, network: $network) {
BalanceUpdates(
where: {BalanceUpdate: {Address: {in: $wallets}},
Currency: {SmartContract: {in: ["0x",
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"0x59f4f336bf3d0c49dbfba4a74ebd2a6ace40539a",
"0xdac17f958d2ee523a2206206994597c13d831ec7"]}}}
) {
currency: Currency {
symbol: Symbol
Native
address: SmartContract
}
value: sum(of: BalanceUpdate_Amount, selectWhere: {gt: "0"})
BalanceUpdate {
address: Address
}
}
}
}
Variables
{
"network": "eth",
"wallets": [
"0x28c6c06298d514db089934071355e5743bf21d60"
]
}
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