GasTracker API

Standard endpoints

class blockscan.modules.gas_tracker.GasTracker[source]
static get_est_confirmation_time(gas_price: int) str[source]

Get the estimated time, in seconds, for a transaction to be confirmed on the blockchain.

Parameters

gas_price (int) – the price paid per unit of gas, in wei

Returns

seconds (est) before confirmation

Return type

str

static get_gas_oracle() str[source]

Get the current Safe, Proposed and Fast gas prices.

Returns

Gas price in wei

Return type

str

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