• Estimates the amount of L1 gas cost for a given L2 transaction in wei.

    Parameters

    • l2Provider: ProviderLike

      L2 provider to query the gas usage from.

    • tx: TransactionRequest

      Transaction to estimate L1 gas cost for.

    Returns Promise<BigNumber>

    Estimated L1 gas cost.

Generated using TypeDoc