Skip to main content

resolve_access_list

Function resolve_access_list 

Source
pub async fn resolve_access_list<P: Provider>(
    sim_access_list: AccessList,
    provider: &P,
    pricing: AccessListPricing,
) -> AccessListResult<Option<AccessList>>
Expand description

Select the appropriate access list strategy based on pricing inputs.

  • L1: Always include the simulation access list (no L1 data cost penalty). Returns None only if the list is empty.
  • Arbitrum: Include only when warm-access savings exceed the exact EIP-2930 RLP data cost priced through ArbGasInfo.
  • OP Stack: Include only when warm-access savings exceed the incremental GasPriceOracle.getL1Fee(bytes) fee between the transaction without and with the access list.