Function reth_evm_optimism::l1::extract_l1_info

source ยท
pub fn extract_l1_info(
    block: &Block,
) -> Result<L1BlockInfo, OptimismBlockExecutionError>
Available on crate feature optimism only.
Expand description

Extracts the [L1BlockInfo] from the L2 block. The L1 info transaction is always the first transaction in the L2 block.

Returns an error if the L1 info transaction is not found, if the block is empty.