Run 0G Full node - Sync from 0 - Auto upgrade
This guide will help you install 0gchaind v.0.25 and automatically upgrade to the new version. To run 0gchaind and sync from block 0, you must start with version v.0.2.5
System updates, installation of required environments:
sudo apt update
sudo apt install curl git make jq build-essential gcc unzip wget lz4 aria2 -yInstall Go
cd $HOME && \
ver="1.22.0" && \
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz" && \
sudo rm -rf /usr/local/go && \
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz" && \
rm "go$ver.linux-amd64.tar.gz" && \
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.bash_profile && \
source ~/.bash_profile && \
go versionDownload and build Binary
cd $HOME
rm -rf 0g-chain
git clone https://github.com/0glabs/0g-chain.git
cd 0g-chain
git checkout v0.2.5
git submodule update --init
make install
0gchaind versionNode init
Replace: Your_Node_name
Download genesis.json file
PEERS, SEED setting
Config pruning, set gas price, enable prometheus, disable indexer
Download cosmovisor script to install
Check Script content nano init-cosmovisor.sh
Run script
Before running this script, make sure Go is loaded in your current shell session. If you haven't loaded Go yet, please run the following command:
Reload profile


Create service file
Start service
Check log
Last updated