[][src]Module ethers_middleware::gas_oracle

The gas oracle middleware is used to get the gas price from a list of gas oracles instead of using eth_gasPrice. For usage examples, refer to the GasOracle trait.

Structs

EthGasStation

A client over HTTP for the EthGasStation gas tracker API that implements the GasOracle trait

Etherchain

A client over HTTP for the Etherchain gas tracker API that implements the GasOracle trait

Etherscan

A client over HTTP for the Etherscan gas tracker API that implements the GasOracle trait

GasNow

A client over HTTP for the GasNow gas tracker API that implements the GasOracle trait

GasOracleMiddleware

Middleware used for fetching gas prices over an API instead of eth_gasPrice

Enums

GasCategory

Various gas price categories. Choose one of the available

GasOracleError

Error thrown when fetching data from the GasOracle

MiddlewareError

Traits

GasOracle

GasOracle is a trait that an underlying gas oracle needs to implement.