TradeFail
Documentation for eth_defi.trade.TradeFail Python class.
- class TradeFail[source]
Describe the result of a failed Uniswap swap.
The transaction reverted for a reason or another.
Attributes summary
Revert reason if we managed to extract one
Methods summary
__init__
(gas_used, effective_gas_price[, ...])get_cost_of_gas
()This will return the gas cost of the transaction in blockchain's native currency e.g.
get_effective_gas_price_gwei
()