pub fn data_gas_bedrock(input: &[u8]) -> Uint<256, 4>
Available on crate feature
protocol
only.Expand description
Calculate the data gas for posting the transaction on L1.
In bedrock, calldata costs 16 gas per non-zero byte and 4 gas per zero byte, with an extra 68 non-zero bytes were included in the rollup data costs to account for the empty signature.