GasPriceSuggestion

Documentation for eth_defi.gas.GasPriceSuggestion class.

class GasPriceSuggestion[source]

Gas price details.

Capture the necessary information for the gas price to used during the transaction building.

  • EIP-1559 London hard fork chains (Ethereumm mainnet)

  • Legacy EVM: Polygon, BNB Chain

Attributes summary

base_fee

London hard fork chains

legacy_gas_price

Non London hard fork chains

max_fee_per_gas

London hard fork chains

max_priority_fee_per_gas

London hard fork chains

method

How the gas price was determined

Methods summary

__init__(method[, legacy_gas_price, ...])

method: eth_defi.gas.GasPriceMethod

How the gas price was determined

legacy_gas_price: Optional[int] = None

Non London hard fork chains

base_fee: Optional[int] = None

London hard fork chains

max_priority_fee_per_gas: Optional[int] = None

London hard fork chains

max_fee_per_gas: Optional[int] = None

London hard fork chains

__init__(method, legacy_gas_price=None, base_fee=None, max_priority_fee_per_gas=None, max_fee_per_gas=None)
Parameters
Return type

None