• Estimates the L2 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 L2 gas cost for.

    Returns Promise<BigNumber>

    Estimated L2 gas cost.

Generated using TypeDoc