GasTracker API
Standard endpoints
- class blockscan.modules.gas_tracker.GasTracker[source]
Pro endpoints
- class blockscan.modules.gas_tracker.ProGasTracker[source]
- static get_daily_average_gas_limit(start_date: str, end_date: str, sort: str) str[source]
Note
Pro API token required
Get the historical daily average gas limit of the network within a date range
- Parameters
start_date (str) – the starting date in yyyy-MM-dd
end_date (str) – the end date in yyyy-MM-dd
sort (str) – the sorting preference (asc or desc)
- Returns
daily average gas limit
- Return type
str
- static get_daily_average_gas_price(start_date: str, end_date: str, sort: str) str[source]
Note
Pro API token required
Get the historical daily average gas price of the network within a date range
- Parameters
start_date (str) – the starting date in yyyy-MM-dd
end_date (str) – the end date in yyyy-MM-dd
sort (str) – the sorting preference (asc or desc)
- Returns
daily average gas price
- Return type
str
- static get_daily_total_gas_used(start_date: str, end_date: str, sort: str) str[source]
Note
Pro API token required
Get the total amount of gas used daily for transactions on the network within a date range
- Parameters
start_date (str) – the starting date in yyyy-MM-dd
end_date (str) – the end date in yyyy-MM-dd
sort (str) – the sorting preference (asc or desc)
- Returns
daily total gas used
- Return type
str