Gas Price By Date ( Median, Average, Maximum)

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

By Nadia · saved 3 January 2024 · run 3 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}}}
      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