Skip to main content
The Kona node can operate in sequencer mode to build and produce new L2 blocks. In this mode, the node acts as the sequencer for an OP Stack rollup, building L2 blocks on top of the current unsafe head and extending the L2 chain. :::info Sequencer mode is an advanced configuration primarily used by rollup operators. Most users will run nodes in the default validator mode. :::

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
The sequencer uses the same core derivation pipeline as validator nodes but operates in reverse - instead of deriving L2 blocks from L1 data, it produces L2 blocks that will later be derivable from L1.

Trait Abstractions

Core Interfaces

The sequencer functionality is built around several key trait abstractions:

RollupNodeService

The main service trait that defines the node’s operational mode and actor types:

AttributesBuilderConfig

Configures how L2 block attributes are constructed:

SequencerActor

The core actor responsible for block production:
  • Builds L2 blocks using the AttributesBuilder
  • Manages timing and L1 origin selection
  • Handles admin RPC commands for sequencer control
  • Coordinates with conductor services for leader election

Programmatic Configuration

Using the RollupNodeBuilder

To configure a Kona node programmatically for sequencer mode:

Configuration Options

CLI Usage

Basic Sequencer Setup

To run a Kona node in sequencer mode:

Required Arguments

:::warning Required Configuration Sequencer mode requires all standard node arguments plus the --mode=Sequencer flag. Missing any required argument will prevent the node from starting. :::

Sequencer-Specific Flags

Example Configurations

Basic Sequencer

Sequencer with Conductor

Recovery Mode Sequencer

Key Considerations

:::tip Sequencer Operation
  • L1 Confirmations: The --sequencer.l1-confs setting determines how many L1 blocks the sequencer waits before using an L1 block as an origin. Higher values provide more safety but increase latency.
  • Recovery Mode: Use --sequencer.recover=true when the sequencer needs to catch up after being offline.
  • Conductor Integration: For multi-sequencer deployments, configure the conductor service for proper leader election. :::
Running a sequencer in production requires careful consideration of infrastructure, monitoring, and failover procedures. Ensure proper JWT secret management and secure network configuration.