Daily Smart Contract Calls

Returns the latest 10 calls on Ethereum, where call to is 0xdac1…1ec7, block date since 2023-08-07 and block date till 2023-08-07: chain ID, block date and count.

By Nadia · saved 13 September 2023 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int, $address: String!, $from: String, $till: String) {
  EVM(dataset: combined, network: $network) {
    Calls(
      where: {Block: {Date: {since: $from, till: $till}}, Call: {To: {is: $address}}}
      limit: {count: $limit}
      orderBy: {descending: Block_Date}
    ) {
      ChainId
      Block {
        Date
      }
      internal_count: count(if: {Call: {Depth: {gt: 0}}})
      external_count: count(if: {Call: {Depth: {eq: 0}}})
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "eth",
  "address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
  "from": "2023-08-07",
  "till": "2023-08-07"
}

Similar queries