Cover photo

Guide to boot an Initia node

Install Go and Initia

sudo apt update
sudo apt install -y build-essential curl git
wget https://golang.org/dl/go1.18.4.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.18.4.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
git clone https://github.com/initia-chain/initia
cd initia
make install

Initialize Node

initiad init <your_node_name>

Download Genesis File:

wget -O ~/.initia/config/genesis.json <genesis_file_url>

Update Configurations:

  • Edit ~/.initia/config/config.toml:

nano ~/.initia/config/config.toml
# Set chain_id, external_address, and add persistent_peers and seeds
  • Set gas prices in app.toml:

nano ~/.initia/config/app.toml
# Set minimum-gas-prices = "0.025<coin>"

Set Up Node as a Service (optional):

sudo tee /etc/systemd/system/initia.service > /dev/null <<EOF
[Unit]
Description=Initia Node
After=network-online.target

[Service]
User=$USER
ExecStart=$(which initiad) start
Restart=on-failure
RestartSec=3
LimitNOFILE=4096

[Install]
WantedBy=multi-user.target
EOF

sudo systemctl enable initia
sudo systemctl start initia

Start the Node:

initiad start

Check Logs:

journalctl -u initia -f

Join a Network (if required):

initiad unsafe-reset-all
initiad start