liquidity of token pair on ethereum

Returns balance updates on Ethereum, where balance update address is 0x7858…D4Bf and currency smart contract is 0xdAC1…1ec7 or 0xa0b8…eb48, sorted by balance, highest first: currency name and sum of balance update amount.

By gaurav · saved 21 June 2024 · run 17 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, network: eth) {
    BalanceUpdates(
      where: {BalanceUpdate: {Address: {is: "0x7858E59e0C01EA06Df3aF3D20aC7B0003275D4Bf"}}, Currency: {SmartContract: {in: ["0xdAC17F958D2ee523a2206206994597C13D831ec7", "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"]}}}
      orderBy: {descendingByField: "balance"}
    ) {
      Currency {
        Name
      }
      balance: sum(of: BalanceUpdate_Amount, selectWhere: {gt: "0"})
    }
  }
}

Similar queries