GasEstimate
Documentation for eth_defi.gmx.gas_monitor.GasEstimate Python class.
- class GasEstimate
Bases:
objectGas estimation result with cost breakdown.
- Parameters
raw_gas_limit – Raw estimate from web3.eth.estimate_gas()
gas_limit – Final estimate after buffer applied
safety_buffer – Buffer multiplier that was applied (e.g., 1.2)
gas_price_wei – Current gas price in wei
estimated_cost_wei – Estimated total cost in wei
estimated_cost_native – Estimated cost in native token units
native_price_usd – Current price of native token in USD (None if unavailable)
estimated_cost_usd – Estimated cost in USD (None if price unavailable)
Attributes summary
raw_gas_limitgas_limitsafety_buffergas_price_weiestimated_cost_weiestimated_cost_nativenative_price_usdestimated_cost_usdMethods summary
__init__(raw_gas_limit, gas_limit, ...)- __init__(raw_gas_limit, gas_limit, safety_buffer, gas_price_wei, estimated_cost_wei, estimated_cost_native, native_price_usd, estimated_cost_usd)