The Base archive node reached a size of 804GB by May 2, 2024
Base 🔵
Base is a secure, low-cost Ethereum L2 built on Optimism’s open-source . In this guide, Optimism's op-erigon and op-nodebinaries are built from source to facilitate the node's installation. This method has proved to sync an archive node successfully in ~48 hours using the official snapshot provided by the Base team.
Before you start, make sure that you have your own synced Ethereum L1 RPC URL (e.g. Erigon) and L1 Consensus Layer Beacon endpoint (e.g. Lighthouse) ready.
sudo nano /etc/systemd/system/op-node.service #make changes in op-node service file
sudo systemctl daemon-reload #refresh systemd configuration when changes made
sudo systemctl start op-node.service #start op-node
sudo systemctl enable op-node.service #enable op-node service at system startup
sudo journalctl -fu op-node.service #follow logs of op-node service
Compile Erigon
cd /root/github/
git clone https://github.com/testinprod-io/op-erigon
cd op-erigon
git checkout v2.60.0-0.6.1
make
Create JWT secret file and download genesis and rollup .json files
screen –r archive
ls #to see the name of downloaded archive
zstd --decompress base-mainnet-db-14631082.zst -o mdbx.dat
#Unzipping takes ~3-4 hrs so you can go touch some grass
Consider switching screen by pressingctrl A+Dto allow a process run in the background
After extracting is done move the contents of geth directory into op-erigon data directoy:
mv mdbx.dat /root/data/erigon/datadir/chaindata/
Start op-erigon
sudo systemctl daemon-reload #refresh systemd configuration when changes made
sudo systemctl start op-erigon.service #start op-erigon
sudo systemctl enable op-erigon.service #enable op-erigon service at system startup
sudo journalctl -fu op-erigon.service #follow logs of op-erigon service
To check or modify op-erigon.service parameters simply run