Skip to content

Module 3 - Setup OP Geth Node

Steps to start Postgres, Light Client, Geth, Rhea, Hercules, and optional Nginx via Docker.

This OP Geth node serves as a non-voting RPC node that enables executing Eth L2 transactions.

  • Setting up an OP Geth Node needs OP Geth, Rhea, Hercules, Light Client (AKA Proxy), and Postgres.
  • OP Geth has been modified to calculate gas based on the required Solana compute. It retrieves the required gas value by querying Light Client.
  • Rhea picks up L2 transactions from OP Geth mempool, composes them into Solana transactions, and submits them to Solana for sequencing.
  • Solana’s consensus voting nodes execute and vote on the ordering of these transactions. Hercules reads state from Solana nodes and confirms L2 transactions and ordering on OP Geth.

We recommend using an Ubuntu machine with the specs below. However, macOS is also supported.

Terminal window
docker compose up -d

Alternatively, Run Docker containers below sequentially

Section titled “Alternatively, Run Docker containers below sequentially”
Terminal window
docker compose up -d postgres_rome
docker logs postgres_rome -f

Wait for the logs print out “database system is ready to accept connections”.

Terminal window
docker compose up apply_migrations

Light Client provides an Ethereum interface to access Solana state.

This includes providing gas estimates to Geth.

Terminal window
docker compose up -d proxy_rome
docker logs proxy_rome -f

Wait for the logs print out “Starting the RPC server at 0.0.0.0:9090”.

Geth is the rollup client that accepts and executes Eth L2 transactions, and provides transaction results to the user. It is a non-voting RPC node.

Terminal window
docker compose up -d geth
docker logs geth -f

Wait for the logs print out “HTTP server started”.

Rhea takes rollup transactions from Geth, packages them as Rome Solana transactions, and submits them to Solana for sequencing.

Terminal window
docker compose up -d rhea
docker logs rhea -f

Wait for the logs to print out “Polling: http://geth:8545”.

Hercules reads state from Solana nodes and confirms L2 transactions and ordering on OP Geth.

Terminal window
docker compose up -d hercules
docker logs hercules -f

Wait for the logs to print out “SolanaBlockLoader is in sync with Solana validator”.

Deposit UI enables users to deposit and withdraw SOL in exchange for rSOL that is used for gas payment on Rome.

Terminal window
docker compose up -d depositui
docker logs depositui -f
Terminal window
docker compose up -d romenginx
docker logs romenginx -f

Wait for the logs to print out “Configuration complete; ready for start up”.

Terminal window
docker compose down -d
Terminal window
docker compose up -d

The docker containers you ran are listed below.

Docker ContainerPurpose
proxy_romeLight Client
gethOP Geth
rheaRhea
herculesHercules
postgres_romePostgres database
apply_migrationsPostgres migrations
deposituiuiDeposit UI
romenginxNginx Proxy