Skip to main content
Now that you have op-deployer configured, it’s time to spin up the sequencer for your rollup. This involves running both op-geth and op-node to create a functioning sequencer.
Step 2 of 5: This tutorial builds on Spin up op-deployer. Make sure you’ve completed that first.

What you’ll set up

The sequencer node consists of two core components:
  • op-geth: Execution layer that processes transactions and maintains state
  • op-node: Consensus layer that orders transactions and creates L2 blocks
The sequencer is responsible for:
  • Ordering transactions from users
  • Building L2 blocks
  • Signing blocks on the P2P network

Software installation

For spinning up a sequencer, we recommend using Docker, as it provides a simpler setup and consistent environment. In this guide, building from source is also provided as an alternative for those who need more control and easier debugging.
1

Set up directory structure and copy configuration files

If you prefer containerized deployment, you can use the official Docker images, and do the following:
2

Create environment variables file

Important: Replace ALL placeholder values (YOUR_ACTUAL_*) with your real configuration values.
3

Make sure your docker application is running

Create a docker-compose.yml file in the same directory:
4

Initialize op-geth with Docker

5

Start the services

6

Final directory structure

Your sequencer node is now operational and ready to process transactions.

What’s Next?

Great! Your sequencer is running and processing transactions. The next step is to set up the batcher to publish transaction data to L1.

Spin up batcher →

Next: Configure and start op-batcher to publish L2 transaction data to L1 for data availability.

Need Help?