Skip to main content

estimate_eip1559_fees

Function estimate_eip1559_fees 

Source
pub async fn estimate_eip1559_fees<P, N>(
    provider: &P,
    preset: Eip1559FeeEstimatePreset,
) -> Result<ResolvedEip1559Fees>
where P: Provider<N>, N: Network,
Expand description

Estimates EIP-1559 fees for provider using the given preset.

preset controls the reward percentile sampled for the priority fee and the base-fee multiplier used to build maxFeePerGas.