Module gas_oracle

Available on crate feature rpc only.
Expand description

An implementation of the eth gas price oracle, used for providing gas price estimates based on previous blocks.

Structs§

EffectiveTipLruCache
Wrapper struct for LruMap
GasCap
The wrapper type for gas limit
GasPriceOracle
Calculates a gas price depending on recent blocks.
GasPriceOracleConfig
Settings for the GasPriceOracle
GasPriceOracleResult
Stores the last result that the oracle returned

Constants§

RPC_DEFAULT_GAS_CAP
The default gas limit for eth_call and adjacent calls. See RPC_DEFAULT_GAS_CAP.