Solidity API
IL2GasCalculator
getCalldataGas
function getCalldataGas(uint256 calldataLength) external view returns (uint256 calldataGas)
Calculate the cost (in gas units) of calldata in ETH on a L2 with a different fee structure than mainnet
initialGasUsed
function initialGasUsed(uint256 calldataLength) external view returns (uint256 gasUsed)
Gets the cost (in gas units) of initial gas used for a tx with a different calldata fee than mainnet