Smart Contract Statistics (dataset combain)

Returns one call on Ethereum, where call to is 0xc02a…6cc2 and currency smart contract is 0xc02a…6cc2: chain ID, block time, count, sum of fee sender fee, unique of call from, unique of call to, currency name and 2 more fields.

By Nadia · saved 17 January 2024 · run 9 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $address: String!) {
  EVM(dataset: combined, network: $network) {
    Calls(where: {Call: {To: {is: $address}}}) {
      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)
    }
    Transfers(
      where: {Transfer: {Currency: {SmartContract: {is: $address}}}}
      limit: {count: 1}
    ) {
      Transfer {
        Currency {
          Name
          Symbol
          SmartContract
        }
      }
    }
  }
}

Variables

{
  "network": "eth",
  "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
}

Similar queries