Total gas fee in last 30 days on Polygon

Returns transactions on Ethereum and Polygon, where date after 2023-01-01 and date before 2023-01-27: gas value and gas price.

By Divyasshree N · saved 27 January 2023 · run 6 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    transactions(date: {after: $from, before: $till}) {
     
      gasValue(calculate: sum)
      gasPrice(calculate: sum)
    }
  }
}

Variables

{
 
  
  "network": "matic",
  "from": "2023-01-01",
  "till": "2023-01-27T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries