fetch transactions count for any smart contract

Returns smart contract calls on Ethereum and Polygon, where smart contract address is 0x8693…f95d, time since 2022-12-13 and time till 2022-12-14: date date and count.

By Arun · saved 4 January 2023 · run 7 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $token: String!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    smartContractCalls(
      smartContractAddress: {is: $token}
      time: {since: $from, till: $till}
    ) {
      date {
        date(format: $dateFormat)
      }
      external: count(external: true)
      external_internal: count(uniq: txs)
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "matic",
  "token": "0x86935f11c86623dec8a25696e1c19a8659cbf95d",
  "from": "2022-12-13T00:00:00",
  "till": "2022-12-14T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries