Installation
Install depedencies
sudo apt update
sudo apt install -y curl git jq lz4 build-essential
Install GO
sudo rm -rf /usr/local/go
curl -L https://go.dev/dl/go1.21.6.linux-amd64.tar.gz | sudo tar -xzf - -C /usr/local
echo 'export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin' >> $HOME/.bash_profile
source .bash_profile
Clone initia repository
cd && rm -rf initia
git clone https://github.com/initia-labs/initia
cd initia
git checkout v0.2.15
make install
Sett Vars
# set vars
echo "export WALLET="test"" >> $HOME/.bash_profile
echo "export MONIKER=""" >> $HOME/.bash_profile
echo "export INITIA_CHAIN_ID="initiation-1"" >> $HOME/.bash_profile
echo "export INITIA_PORT="26"" >> $HOME/.bash_profile
source $HOME/.bash_profile
please change "test" and "Nodevism" to your own what ever u want. Wallet="test" is mean your wallet name. Moniker="Nodevism" is your node name. if u want use custom port just change "INITIA_PORT="your own port""
Configure and initial app
initiad init $MONIKER
initiad config set client chain-id initiation-1
initiad config set client node tcp://localhost:${INITIA_PORT}657
sed -i -e "s|^node *=.*|node = \"tcp://localhost:${INITIA_PORT}657\"|" $HOME/.initia/config/client.toml
Download genesis and adrrbook
curl -Ls https://testnet-file.ruangnode.com/snap-testnet/initia-testnet/genesis.json > $HOME/.initia/config/genesis.json
curl -Ls https://testnet-file.ruangnode.com/snap-testnet/initia-testnet/addrbook.json > $HOME/.initia/config/addrbook.json
Settt seed and peerr
PEERS="[email protected]:12656"
SEEDS="[email protected]:26656,c28827cb96c14c905b127b92065a3fb4cd77d7f6@testnet-seeds.whispernode.com:25756"
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.initia/config/config.toml
Sett Custom Port
sed -i.bak -e "s%:26658%:${INITIA_PORT}658%g;
s%:26657%:${INITIA_PORT}657%g;
s%:6060%:${INITIA_PORT}060%g;
s%:26656%:${INITIA_PORT}656%g;
s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${INITIA_PORT}656\"%;
s%:26660%:${INITIA_PORT}660%g" $HOME/.initia/config/config.toml
Config and Prunning
sed -i -e "s/^pruning *=.*/pruning = \"custom\"/" $HOME/.initia/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $HOME/.initia/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"50\"/" $HOME/.initia/config/app.toml
Sett Minimum Gas Price
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.15uinit,0.01uusdc\"|" $HOME/.initia/config/app.toml
sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.initia/config/config.toml
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.initia/config/config.toml
Create Service File
sudo tee /etc/systemd/system/initiad.service > /dev/null <<EOF
[Unit]
Description=Initia node
After=network-online.target
[Service]
User=$USER
WorkingDirectory=$HOME/.initia
ExecStart=$(which initiad) start --home $HOME/.initia
Restart=on-failure
RestartSec=5
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
Enable And Start Service
sudo systemctl daemon-reload
sudo systemctl enable initiad
sudo systemctl restart initiad && sudo journalctl -u initiad -f
Your node has already run..! but your node start from 0 blocks that need more time to sync i suggest you to use snapshot. i recommend you to use snapshot from polkachu.com they snapshot always updated every 24 hours
Last updated