Gas Price By Date ( Median, Average, Maximum)

Returns the latest 100 transactions on Ethereum, where block date till 2023-12-28, block date since 2023-12-21 and transaction gas price is above 0: gas price, median of transaction gas price, chain ID and block date.

By Nadia · saved 13 February 2025 · run 4 times · 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(
      where: {Block: {Date: {till: $till, since: $from}}, Transaction: {GasPrice: {gt: "0"}}, TransactionStatus: {Success: true}}
      limit: {count: $limit}
      orderBy: {descending: Block_Date}
    ) {
      min: Transaction {
        GasPrice(minimum: Transaction_GasPrice)
      }
      max: Transaction {
        GasPrice(maximum: Transaction_GasPrice)
      }
      median(of: Transaction_GasPrice)
      ChainId
      Block {
        Date
      }
    }
  }
}

Variables

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

Similar queries