Smart Contract balance by currencies
Returns one balance update on Arbitrum, where balance update address is 0xfae3…3752, currency smart contract is 0xfae3…3752 and currency smart contract is not 0x, sorted by sum, highest first: chain ID, count, currency symbol, smart contract, currency name, sum of balance update amount and protocol name.
What it returns
- chain ID
- count
- currency symbol
- smart contract
- currency name
- sum of balance update amount
- protocol name
Filters
- balance update address is 0xfae3…3752
- currency smart contract is 0xfae3…3752
- currency smart contract is not 0x
The query
query ($network: evm_network, $address: String!) {
EVM(network: $network, dataset: combined) {
BalanceUpdates(
orderBy: {descendingByField: "sum"}
where: {BalanceUpdate: {Address: {is: $address}}, Currency: {SmartContract: {not: "0x"}}}
) {
ChainId
count
Currency {
Symbol
SmartContract
Name
}
sum(of: BalanceUpdate_Amount, selectWhere: {gt: "0.0"})
}
Transfers(
limit: {count: 1}
where: {Transfer: {Currency: {SmartContract: {is: $address}}}}
) {
Transfer {
Currency {
Name
ProtocolName
SmartContract
}
}
}
}
}
Variables
{
"offset": 0,
"network": "arbitrum",
"address": "0xfae39ec09730ca0f14262a636d2d7c5539353752"
}
Similar queries
- MyQuery EVM · BNB Chain · BalanceUpdates
- search address v2 · Ethereum · BalanceUpdates
- balance of an address on multiple chains · Ethereum · BalanceUpdates
- WETH_issue · Arbitrum · BalanceUpdates
- Arbitrum Balance_ · Arbitrum · BalanceUpdates