SmartContractMethods

Returns 10 smart contract calls on Ethereum, where smart contract address is 0xdac1…1ec7, date since 2023-08-01 and date till 2023-08-02, sorted by count, highest first: smart contract method name, smart contract method signature, signature hash, count, gas value and maximum of date.

By Nadia · saved 4 August 2023 · run 7 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $address: String!, $limit: Int, $offset: Int, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    smartContractCalls(
      options: {desc: "count", limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      smartContractAddress: {is: $address}
    ) {
      smartContractMethod {
        name
        signature
        signatureHash
      }
      count
      internal_count: count(external: false)
      external_count: count(external: true)
      senders: count(uniq: senders)
      txs: count(uniq: txs)
      gasValue(calculate: average)
      gas_value_usd: gasValue(in: USD, calculate: average)
      max_date: maximum(of: date)
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
  "from": "2023-08-01",
  "till": "2023-08-02T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries