🐋Op-Reth
Authors: [man4ela | catapulta.eth]
System Requirements
8-Core CPU
Debian 12/Ubuntu 22.04
=> 16 GB RAM
1 TB+
(NVMe)
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
Pre-Requisites
sudo apt update -y && sudo apt upgrade -y && sudo apt autoremove -y
sudo apt install -y wget curl screen git ufwSetting up Firewall
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow 22/tcp
sudo ufw allow 80
sudo ufw allow 443Enable Firewall
Install Docker
Run this command to remove any conflicting docker
Add Docker's official GPG key:
Add the repository to ppt sources:
Install docker
Setting up a domain name to access RPC
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.
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.
To sync from a snapshot, visit the Base Docs to validate the recommended approach for restoring from snapshot: https://docs.base.org/chain/run-a-base-node.
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 Reth 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-reth-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-reth-data directory first:
Launch Base Sepolia
Paste the following into the docker-compose.yml:
Monitor Logs
Use docker logs to monitor your op-reth and op-node. The -f flag ensures you are following the log output
Once your Base node starts syncing, the logs should look like this:
for op-reth:
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
References
Last updated
Was this helpful?