Smart Contract Methods

Returns 10 calls on Arbitrum, where call to is 0xfd08…cbb9, block date since 2023-09-13 and block date till 2023-09-19, sorted by count, highest first: chain ID, block date, call value, signature name, signature signature, signature hash, count and average of fee sender fee.

By Nadia · saved 19 September 2023 · run 4 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int, $token: String!, $from: String, $till: String) {
  EVM(dataset: combined, network: $network) {
    Calls(
      where: {Block: {Date: {since: $from, till: $till}}, Call: {To: {is: $token}}}
      limit: {count: $limit}
      orderBy: {descendingByField: "count"}
    ) {
      ChainId
      Block {
        Date(maximum: Block_Date)
      }
      Call {
        Value
        Signature {
          Name
          Signature
          SignatureHash
        }
      }
      internal_count: count(if: {Call: {Depth: {gt: 0}}})
      external_count: count(if: {Call: {Depth: {eq: 0}}})
      count
      senders: count(distinct: Call_From)
      txs: count(distinct: Transaction_From)
      average(of: Fee_SenderFee)
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "arbitrum",
  "from": "2023-09-13",
  "till": "2023-09-19",
  "token": "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9"
}

Similar queries