Copy #Install Dependencies
sudo apt update && sudo apt install curl git jq build-essential gcc unzip wget lz4 -y
## Install Go
cd $HOME
VERSION=1.21.3
wget -O go.tar.gz https://go.dev/dl/go$VERSION.linux-amd64.tar.gz
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go.tar.gz && rm go.tar.gz
echo 'export GOROOT=/usr/local/go' >> $HOME/.bash_profile
echo 'export GOPATH=$HOME/go' >> $HOME/.bash_profile
echo 'export GO111MODULE=on' >> $HOME/.bash_profile
echo 'export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin' >> $HOME/.bash_profile && . $HOME/.bash_profile
go version
#install binary
git clone https://github.com/initia-labs/initia.git
cd initia
git checkout v0.2.15
make install
initiad version
#Set variable
echo 'export MONIKER="Yournicename"' >> ~/.bash_profile
echo 'export CHAIN_ID="initiation-1"' >> ~/.bash_profile
echo 'export WALLET="yourwalletname"' >> ~/.bash_profile
source $HOME/.bash_profile
#init
initiad init $MONIKER --chain-id $CHAIN_ID
#Download Genesis File
wget -O $HOME/.initia/config/genesis.json https://initia.s3.ap-southeast-1.amazonaws.com/initiation-1/genesis.json
#Update Peers
seeds = "[email protected] :25756,[email protected] :16656,[email protected] :53456,[email protected] :53456,[email protected] :26656,[email protected] :17956,[email protected] :15656,[email protected] :10656,[email protected] :17956,[email protected] :17956,[email protected] :53456,[email protected] :26686,[email protected] :15056,[email protected] :17956,[email protected] :51656"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $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
ExecStart=$(which initiad) start --home $HOME/.initia
Restart=on-failure
RestartSec=5
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
#start service
sudo systemctl daemon-reload
sudo systemctl enable initiad
sudo systemctl restart initiad && sudo journalctl -u initiad -fo cat