v1
latestOpenAPI 3.0.02026-07-2224101.3 MBGas
This endpoint returns the statistics related to gas used in all transactions. We provide the total amount of gas used as gas_used_total, the average amount of gas used as gas_used_mean, the average gas price as gas_price_mean in Gwei per gas, and the average gas limit as gas_limit_mean.
Query parameters
Currently we support day, hour, 10min, and block.
This defines the starting time for which data will be gathered, formatted as YYYYMMDDTHHMMSS (indicating YYYY-MM-DDTHH:MM:SS, UTC time). If window=day is used, it can also be formatted as YYYYMMDD (date). If window=block is used, you can also specify the exact block height (e.g. 510000). If this field is not specified, response will include data from the earliest time.
This defines the ending time for which data will be gathered, formatted as YYYYMMDDTHHMMSS (indicating YYYY-MM-DDTHH:MM:SS, UTC time). If window=day is used, it can also be formatted as YYYYMMDD (date). If window=block is used, you can also specify the exact block height (e.g. 510000). If this field is not specified, response will include data from the latest time.
The maximum number of entries to return before the latest data point (or before to if specified). This field ranges from 1 to 100,000.
A format type about return message type. Supported formats are json, csv.
Response
gas_used_total, gas_used_mean, gas_price_mean, gas_limit_mean.