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 and sum of balance update amount.

By Nadia · saved 16 January 2024 · run 13 times · Bitquery API v2

What it returns

Filters

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
          Symbol
          SmartContract
        }
      }
    }
  }
}

Variables

{
  "offset": 0,
  "network": "arbitrum",
  "address": "0xfae39ec09730ca0f14262a636d2d7c5539353752"
}

Similar queries