Too many queries

Returns 1000 balance updates on Ethereum, where currency smart contract is 0xc02a…6cc2: balance update address and sum of balance update amount.

By Aleksey · saved 6 December 2023 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query($tokenAddress: String!, $limit: Int!, $offset: Int!) {
          EVM(network: eth, dataset: combined) {
            BalanceUpdates(
              where: {Currency: {SmartContract: {is: $tokenAddress}}}
              limit: {count: $limit, offset: $offset}
            ) {
              BalanceUpdate {
                Address
              }
              sum(of: BalanceUpdate_Amount, selectWhere: {gt: "0"})
            }
          }
        }

Variables

{
            "tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
            "limit": 1000,
            "offset": 0
        }

Similar queries