Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.optimism.io/llms.txt

Use this file to discover all available pages before exploring further.

The L2BlockInfo extends the BlockInfo type for the canonical L2 chain. It contains the “L1 origin” which is a set of block info for the L1 block that this L2 block “originated”. Similarly to the BlockInfo type, L2BlockInfo is a subset of information provided by a block header, used for protocol operations. L2BlockInfo provides a from_block_and_genesis method to construct the L2BlockInfo from a block and ChainGenesis.