Gas Price By Date ( Median, Average, Maximum)

Returns the latest 100 transactions on Ethereum, where block date till 2024-01-11, block date since 2024-01-04 and transaction gas price is above 0: gas price, median of transaction gas price, chain ID and block date.

By Deepak · saved 11 January 2024 · run 17 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"}}}
      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":"2024-01-04","till":"2024-01-11","dateFormat":"%Y-%m-%d","date_middle":"2024-01-07"}

Similar queries