Solidity API
IL2GasCalculator
getCalldataCost
function getCalldataCost(uint256 calldataLength) external view returns (uint256 calldataCost)
Calculate the cost 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 of initial gas used for a transaction with a different calldata fee than mainnet