zpywallet.fees.eth package
Submodules
zpywallet.fees.eth.fullnode module
zpywallet.fees.eth.loadbalancer module
- class EthereumFeeEstimator(**kwargs)[source]
Bases:
objectA class representing a Ethereum gas estimator.
Developers should use this class, because it autoselects the most stable providers to fetch data from.
- estimate_gas(transaction_obj)[source]
Gets the gas required for a particular transaction.
- Returns:
The gas required for the transaction.
- Return type:
int
- Raises:
NetworkException – If the API request fails or the gas cannot be retrieved.