Smart Contract Methods Called

Returns one call on Ethereum, where call from is 0xcf52…00e1, currency smart contract is 0xcf52…00e1 and block date since 2023-07-25, sorted by count, highest first: chain ID, block date, unique of call to, count, sum of fee sender fee, sum of fee sender fee in USD, call value and 6 more fields.

By Nadia · saved 18 February 2025 · run 2 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: {Block: {Date: {since: $from, till: $till}}, Call: {From: {is: $address}}}
      limit: {count: $limit}
      orderBy: {descendingByField: "count"}
    ) {
      ChainId
      Block {
        Date(maximum: Block_Date)
      }
      uniq(of: Call_To)
      count
      sum(of: Fee_SenderFee)
      sum_usd: sum(of: Fee_SenderFeeInUSD)
      Call {
        Value
        Signature {
          Name
          Signature
          SignatureHash
        }
      }
    }
    token_info: Transfers(
      where: {Transfer: {Currency: {SmartContract: {is: $address}}}}
      limit: {count: 1}
    ) {
      Transfer {
        Currency {
          Symbol
          SmartContract
          Name
        }
      }
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "eth",
  "address": "0xcf523864704a502d36e8e24cd73a2aee6cda00e1",
  "from": "2023-07-25",
  "till": "2023-07-31"
}

Similar queries