monthly stats of smart contract

Returns smart contract calls on Ethereum, where smart contract address is 0xfb07…fa4a: minimum of block, maximum of time, count and date date.

By gaurav · saved 25 August 2023 · run 4 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $address: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    smartContractCalls(
      date: {since: $from, till: $till}
      smartContractAddress: {is: $address}
    ) {
      created: minimum(of: block, get: time)
      created_block: minimum(of: block)
      created_tx: minimum(of: block, get: tx_hash)
      created_by: minimum(of: block, get: caller)
      max_time: maximum(of: time)
      external_calls: count(external: true)
      internal_calls: count(external: false)
      count
      callers: count(uniq: callers)
      days: count(uniq: dates)
      txs: count(uniq: txs)
      date {
        date(format: "%y-%m")
      }
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "address": "0xfb071837728455c581f370704b225ac9eabdfa4a",
  "from": null,
  "till": null,
  "dateFormat": "%Y-%m-%d"
}

Similar queries