Gas Price By Date ( Median, Average, Maximum)

Returns the latest transactions on Ethereum, where block date till 2025-04-24, block date since 2025-04-17 and transaction gas price is above 0: gas price, median of transaction gas price, chain ID and block date.

By Nadia · saved 24 April 2025 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $from: String, $till: String) {
  EVM(dataset: realtime, network: $network) {
    Transactions(
      where: {Block: {Date: {till: $till, since: $from}}, Transaction: {GasPrice: {gt: "0"}}, TransactionStatus: {Success: true}}
      orderBy: {descending: Block_Date}
    ) {
      min: Transaction {
        GasPrice(minimum: Transaction_GasPrice)
      }
      max: Transaction {
        GasPrice(maximum: Transaction_GasPrice)
      }
      median(of: Transaction_GasPrice)
      ChainId
      Block {
        Date
      }
    }
  }
}

Variables

{
  "network": "eth",
  "from": "2025-04-17",
  "till": "2025-04-24",
  "dateFormat": "%Y-%m-%d",
  "date_middle": "2025-04-20"
}

Similar queries