Fees Analysis

Returns 100 transactions on Ethereum, where block date since 2023-12-28, block date till 2023-12-28 and transaction gas price is above 0, sorted by fee sender, highest first: to, count, average of transaction gas price, sum of fee sender fee, sum of fee miner reward, sum of fee savings, sum of fee burnt and 2 more fields.

By Nadia · saved 3 January 2024 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int, $from: String, $till: String) {
  EVM(dataset: combined, network: $network) {
    Transactions(
      limit: {count: $limit}
      where: {Block: {Date: {since: $from, till: $till}}, Transaction: {GasPrice: {gt: "0"}}}
      orderBy: {descendingByField: "fee_sender"}
    ) {
      Transaction {
        To
      }
      count
      gas_price: average(of: Transaction_GasPrice)
      fee_sender: sum(of: Fee_SenderFee)
      fee_reward: sum(of: Fee_MinerReward)
      fee_saving: sum(of: Fee_Savings)
      fee_burnt: sum(of: Fee_Burnt)
      gas_used: sum(of: Receipt_GasUsed)
      ChainId
    }
  }
}

Variables

{
  "limit": 100,
  "network": "eth",
  "from": "2023-12-28",
  "till": "2023-12-28"
}

Similar queries