Op-Erigon Base Sepolia archive node has a size of 1,5TB on May 14th, 2025
Base is a secure, low-cost Ethereum L2 built on Optimismβs open-source OP Stack. 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 ~week 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 Base Sepolia directory
Create .env file
Paste the following into the file.
Ctrl + x and y to save file
Make sure L1_BEACON endpoint provides full historical blobs data. Otherwise you won't be able to sync
Create JWT secret file
Optional/Recommended: Download Base Snapshot
This is an optional step based on whether you want to sync the node from scratch or sync the node from a snapshot. Based on InfraDAOβs experience, we recommend downloading a snapshot and syncing the node from that snapshot. Syncing the node from scratch will take weeks while the op-erigon snapshot requires much shorter time to download, some time to extract, and about a week to sync from that point.
To sync from a snapshot, visit Testinprod-io Node Snapshots page to find a latest Base Sepolia archive for Op-Erigon: https://snapshot.testinprod.io/.
Testinprod doesn't update Base Sepolia snapshot regularly so expect about 3 weeks to sync a node from the most recent snapshot available
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 Base 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:
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 base-sepolia && cd base-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. base-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 /root/base-sepolia
aria2c --file-allocation=none -c -x 15 -s 15 https://datadirs.testinprod.io/base-sepolia-db-13833382.zst
screen -r erigon #will bring you back to monitor downloading progress
zstd -d base-sepolia-db-13833382.zst -c | tar xvf -
# replace the archive with an actual name
cd /var/lib/docker/volumes/base-sepolia_op-erigon_data/_data
ls
#if directory isn't empty remove contents of chaindata directory
rm -rf ~/chaindata/*
mv /root/base-sepolia/mdbx.dat /var/lib/docker/volumes/base-sepolia_op-erigon_data/_data/chaindata
cd /var/lib/docker/volumes/base-sepolia_op-erigon_data/_data/chaindata
ls #to check if archive has moved properly
docker volume create base-sepolia_op-erigon_data
cd /var/lib/docker/volumes/base-sepolia_op-erigon_data/_data
mv /root/base-sepolia/mdbx.dat /var/lib/docker/volumes/base-sepolia_op-erigon_data/_data/
ls
cd /root/base-sepolia
sudo nano docker-compose.yml