last 1h,6h,24h fees Matic

Returns transactions on Polygon, where block time after 2024-10-07 and block time after 2024-10-06: sum of transaction gas, median of transaction gas and average of transaction gas.

By Divyasshree · saved 7 October 2024 · run 1 time · Bitquery API v2

What it returns

Filters

The query

{
  EVM(network: matic, dataset: realtime) {
    last_1h: Transactions(where: {Block: {Time: {after: "2024-10-07T09:30:00Z"}}}) {
      tx_gas_sum: sum(of: Transaction_Gas)
      tx_gas_med: median(of: Transaction_Gas)
      tx_gas_avg: average(of: Transaction_Gas)
    }
    last_6h: Transactions(where: {Block: {Time: {after: "2024-10-07T04:30:00Z"}}}) {
      tx_gas_sum: sum(of: Transaction_Gas)
      tx_gas_med: median(of: Transaction_Gas)
      tx_gas_avg: average(of: Transaction_Gas)
    }
    last_24h: Transactions(where: {Block: {Time: {after: "2024-10-06T10:30:00Z"}}}) {
      tx_gas_sum: sum(of: Transaction_Gas)
      tx_gas_med: median(of: Transaction_Gas)
      tx_gas_avg: average(of: Transaction_Gas)
    }
  }
}

Similar queries