Top Gas burner for Smart Contract

Returns one call on Ethereum, where call to is 0xdac1…1ec7, currency smart contract is 0xdac1…1ec7 and block date since 2023-08-07, sorted by average, highest first: chain ID, block date, count, average of fee burnt, average of fee burnt in USD, from, currency name and 2 more fields.

By Nadia · saved 18 February 2025 · run 1 time · 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: {Call: {To: {is: $address}}, Block: {Date: {since: $from, till: $till}}}
      limit: {count: $limit}
      orderBy: {descendingByField: "average"}
    ) {
      ChainId
      Block {
        Date(maximum: Block_Date)
      }
      count
      average(of: Fee_Burnt)
      average_usd: average(of: Fee_BurntInUSD)
      Call {
        From
      }
    }
    Transfers(
      limit: {count: 1}
      where: {Transfer: {Currency: {SmartContract: {is: $address}}}}
    ) {
      Transfer {
        Currency {
          Name
          SmartContract
          Symbol
        }
      }
    }
  }
}

Variables

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

Similar queries