Op-Erigon Optimism Sepolia archive node has a size of 706GB on March 27th, 2025
In this guide, we cover docker installation of op-erigon and op-nodeto facilitate the node's synchronization on Sepolia Testnet Network. This method is expected to sync an archive node successfully in days or weeks using the snapshot provided by Testinprod-io
Before you start, make sure that you have your own synced Ethereum Sepolia L1 RPC URL and L1 Consensus Layer Beacon endpoint (e.g. Lighthouse Sepolia) ready
Get the IP address of the host machine, you can use the following command in a terminal or command prompt
Set an A record for a domain, you need to access the domain's DNS settings and create an A record that points to the IP address of the host machine. This configuration allows users to reach your domain by resolving the domain name to the specific IP address associated with your host machine.
Create Optimism Sepolia directory
Create .env file
Paste the following into the file.
Ctrl + x and y to save file
Create JWT secret file
Optional/Recommended: Download OptimismSnapshot
To sync from a snapshot, visit Testinprod-io Node Snapshots page to find a latest OptimismSepolia archive for Op-Erigon: https://snapshot.testinprod.io/.
As downloading a snapshot takes some time it is good idea to run it in a screen session
Use aria2c to download the most recent Optimism Sepolia Op-Erigon Archive Snapshot
press ctrl+A and D to return to previous screen and continue installation
You'll need to extract the downloaded snapshot and move its contents to the op-erigon-data directory, where Docker stores persistent data.
If you initially tried to sync the node from scratch and are now trying with a snapshot make sure to empty the destination directory first:
If you haven't started the node yet, create op-erigon-data directory first:
Launch Optimism Sepolia
Copy/Paste into docker-compose.yml:
Monitor Logs
Use docker logs to monitor your op-erigon and op-node. The -f flag ensures you are following the log output
Once your Optimism Sepolia node starts syncing, the logs should look like this:
for op-erigon:
for op-node:
The result will return false if a node is fully synced
Alternatively you can run
and it will return more details about syncing progress
Sync speed will be highly dependent on your Layer 1 RPC
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
# Test docker is working
sudo docker run hello-world
#Install docker compose
sudo apt-get update
sudo apt-get install docker-compose-plugin
# Test the docker version
docker compose version
curl ifconfig.me
mkdir optimism-sepolia && cd optimism-sepolia
sudo nano .env
EMAIL={YOUR_EMAIL} #Your email to receive SSL renewal emails
DOMAIN={YOUR_DOMAIN} #Domain should be something like rpc.mywebsite.com, e.g. optimism-sepolia.infradao.org
WHITELIST={YOUR_REMOTE_MACHINE_IP} #the server's own IP and comma separated list of IP's allowed to connect to RPC (e.g. Indexer)
LAYER_1_RPC={YOUR_L1_RPC} #Your ready synced L1 Ethereum Sepolia node RPC endpoint
L1_BEACON={YOUR_L1_BEACON} #Your synced L1 CL (Consensus Layer) Beacon endpoint, e.g. Lighthouse (Prysm, Lodestar) Sepolia
cd /var/lib/docker/volumes/op-sepolia-erigon_op-erigon_data/_data
ls
#if directory isn't empty remove contents of chaindata directory
rm -rf ~/chaindata/*
mv /root/optimism-sepolia/mdbx.dat /var/lib/docker/volumes/op-sepolia-erigon_op-erigon_data/_data/chaindata
cd /var/lib/docker/volumes/op-sepolia-erigon_op-erigon_data/_data/chaindata
ls #to check if archive has moved properly
docker volume create op-sepolia-erigon_op-erigon_data
cd /var/lib/docker/volumes/op-sepolia-erigon_op-erigon_data/_data
mv /root/optimism-sepolia/mdbx.dat /var/lib/docker/volumes/op-sepolia-erigon_op-erigon_data/_data/
ls
cd /root/optimism-sepolia
sudo nano docker-compose.yml