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 stateop-node
: Consensus layer that orders transactions and creates L2 blocks
- 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.- Use docker
- Build from source
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
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
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?
- Community Support: Join the Optimism Discord
- Batcher Configuration: op-batcher Configuration Guide
- Best Practices: Chain Operator Best Practices