Internal property to determine if a provider is a L2Provider You are likely looking for the isL2Provider function
Estimates the L2 (execution) gas cost for a transaction in wei by multiplying the estimated L1 gas cost by the current L2 gas price. This is a simple multiplication of the result of getGasPrice and estimateGas for the given transaction request.
Transaction to estimate L2 gas cost for.
Estimated L2 gas cost.
Generated using TypeDoc
Represents an extended version of an normal ethers Provider that returns additional L2 info and has special functions for L2-specific interactions.