TradeResult

Documentation for eth_defi.uniswap_v2.analysis.TradeResult class.

class TradeResult[source]

A base class for Success/Fail trade result.

Attributes summary

gas_used

How many units of gas we burned

effective_gas_price

What as the gas price used in wei.

Methods summary

__init__(gas_used, effective_gas_price)

get_effective_gas_price_gwei()

gas_used: int

How many units of gas we burned

effective_gas_price: int

What as the gas price used in wei. Set to 0 if not available.

__init__(gas_used, effective_gas_price)
Parameters
  • gas_used (int) –

  • effective_gas_price (int) –

Return type

None