Average Gas price in BSC network

Returns transactions on Ethereum and BNB Chain, where date since 2021-04-09 and date till 2021-04-09, sorted by block timestamp time: timestamp time and gas price.

By Aleksey · saved 9 April 2021 · run 1 time · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    transactions(
      options: {asc: "block.timestamp.time"}
      date: {since: $from, till: $till}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:00:00")
        }
      }
      medianGasPrice: gasPrice(calculate: median)
      averageGasPrice: gasPrice(calculate: average)
      minGasPrice: gasPrice(calculate: minimum)
      maxGasPrice: gasPrice(calculate: maximum)
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "bsc",
  "from": "2021-04-09",
  "till": "2021-04-09",
  "dateFormat": "%Y-%m"
}

Similar queries