Top Smart Contract Caller

Returns one call on Ethereum, where call to is 0xc02a…6cc2, currency smart contract is 0xc02a…6cc2 and block date since 2025-02-11, sorted by count, highest first: chain ID, block date, count, average of fee sender fee, average of fee sender fee in USD, from, currency name and 2 more fields.

By Nadia · saved 18 February 2025 · run 5 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int, $address: String, $from: String, $till: String) {
  EVM(dataset: combined, network: $network) {
    Calls(
      where: {Call: {To: {is: $address}}, Block: {Date: {since: $from, till: $till}}}
      limit: {count: $limit}
      orderBy: {descendingByField: "count"}
    ) {
      ChainId
      Block {
        Date(maximum: Block_Date)
      }
      count
      average(of: Fee_SenderFee)
      average_usd: average(of: Fee_SenderFeeInUSD)
      Call {
        From
      }
    }
    Transfers(
      limit: {count: 1}
      where: {Transfer: {Currency: {SmartContract: {is: $address}}}}
    ) {
      Transfer {
        Currency {
          Name
          SmartContract
          Symbol
        }
      }
    }
  }
}

Variables

{
  "limit": 10,
  "network": "eth",
  "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
  "from": "2025-02-11",
  "till": "2025-02-18"
}

Similar queries