Smart Contract Methods

Returns one call on Arbitrum, where call to is 0xfd08…cbb9, currency smart contract is 0xfd08…cbb9 and block date since 2023-09-13, sorted by count, highest first: chain ID, block date, call value, value in USD, signature name, signature signature, signature hash and 6 more fields.

By Nadia · saved 18 February 2025 · run 9 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
        ValueInUSD
        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)
      average_usd: average(of: Fee_SenderFeeInUSD)
    }
    Transfers(
      limit: {count: 1}
      where: {Transfer: {Currency: {SmartContract: {is: $token}}}}
    ) {
      Transfer {
        Currency {
          Name
          SmartContract
          Symbol
        }
      }
    }
  }
}

Variables

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

Similar queries