kona-node as a sequencer from the command line, follow the run a sequencer node guide.
Overview
When running in sequencer mode, the Kona node:- Builds L2 blocks by collecting transactions from the mempool and constructing new blocks
- Selects L1 origins for new L2 blocks based on finalized L1 data
- Manages block production timing and ensures proper sequencing constraints
- Integrates with conductor services for leader election in multi-sequencer setups
- Handles recovery scenarios when the sequencer needs to catch up with L1
Core Components
NodeMode
The node’s operational mode is expressed by the NodeMode enum, carried on the node’s EngineConfig:
SequencerActor
The core actor responsible for block production. Like every node component, it implements the NodeActor trait:
- Builds L2 blocks using the attributes builder
- Manages timing and L1 origin selection
- Handles admin RPC commands for sequencer control
- Coordinates with conductor services for leader election
SequencerConfig
Sequencer behavior is configured through the SequencerConfig struct:
Programmatic Configuration
Using the RollupNodeBuilder
To configure a Kona node programmatically for sequencer mode, setNodeMode::Sequencer on the EngineConfig and pass a SequencerConfig to the RollupNodeBuilder:
Configuration Options
Next Steps
- To run a sequencer from the command line, including the required flags and example configurations, see run a sequencer node.
- For the full CLI flag catalogue, see the Kona node CLI reference.