Module ethers_middleware::gas_oracle
source · Expand description
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
A client over HTTP for the BlockNative gas tracker API
that implements the
GasOracle traitA client over HTTP for the EthGasStation gas tracker API
that implements the
GasOracle traitA client over HTTP for the Etherchain gas tracker API
that implements the
GasOracle traitA client over HTTP for the Etherchain GasNow gas tracker API
that implements the
GasOracle traitMiddleware used for fetching gas prices over an API instead of
eth_gasPriceGas oracle from a
Middleware implementation such as an
Ethereum RPC provider.Enums
Various gas price categories. Choose one of the available
Error thrown when fetching data from the
GasOracleTraits
GasOracle is a trait that an underlying gas oracle needs to implement.