alloy_provider::utils

Function eip1559_default_estimator

source
pub fn eip1559_default_estimator(
    base_fee_per_gas: u128,
    rewards: &[Vec<u128>],
) -> Eip1559Estimation
Expand description

The default EIP-1559 fee estimator.

Based on the work by MetaMask; constants for “medium” priority level are used.