Op-Reth Base Sepolia archive node has a size of 637GB on March 10th, 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-reth and op-nodeto facilitate the node's synchronization on Sepolia Testnet Network. This method has proved to sync an archive node successfully in ~24 hours using the official snapshot provided by the Base team
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
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 the scratch will take weeks while the snapshot requires a couple of hours to download, some time to extract, and roughly 24 hours to sync from that point.
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
screen -r reth #will bring you back to monitor downloading progress
zstd -d base-sepolia-reth-1741404553.tar.zst -c | tar xvf -
# replace the archive with an actual name
cd /var/lib/docker/volumes/reth_op-reth_data/_data
ls
#if directory isn't empty remove all contents
rm -rf blobstore db discovery-secret invalid_block_hooks known-peers.json reth.toml static_files
mv /root/base-sepolia/snapshots/sepolia/download/* /var/lib/docker/volumes/reth_op-reth_data/_data/
cd /var/lib/docker/volumes/reth_op-reth_data/_data/
ls
docker volume create reth_op-reth_data
cd /var/lib/docker/volumes/reth_op-reth_data/_data
mv /root/base-sepolia/snapshots/sepolia/download/* /var/lib/docker/volumes/reth_op-reth_data/_data/
ls
cd /root/base-sepolia
sudo nano docker-compose.yml