Smart Contract Statistics

Returns 10 calls on Arbitrum, where call to is 0x9437…58c6, sorted by count, highest first: chain ID, block time, count, sum of fee sender fee, unique of call from and unique of call to.

By Nadia · saved 16 August 2023 · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int, $address: String!) {
  EVM(dataset: combined, network: $network) {
    Calls(
      where: {Call: {To: {is: $address}}}
      limit: {count: $limit}
      orderBy: {descendingByField: "count"}
    ) {
      ChainId
      Block {
        Time(maximum: Block_Time)
      }
      days: count(distinct: Block_Date)
      internal_count: count(if: {Call: {Depth: {gt: 0}}})
      external_count: count(if: {Call: {Depth: {eq: 0}}})
      count
      sum(of: Fee_SenderFee)
      call_from: uniq(of: Call_From)
      call_to: uniq(of: Call_To)
      t_from: count(distinct: Transaction_From)
      t_to: count(distinct: Transaction_To)
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "arbitrum",
  "address": "0x9437346230be303ff105caedaca72ea38b8b58c6"
}

Similar queries