Chain ID: initiation-1 | Node Version: v0.2.11
sudo apt update
sudo apt-get install git curl build-essential make jq gcc snapd chrony lz4 tmux unzip bc -y
rm -rf $HOME/go
sudo rm -rf /usr/local/go
cd $HOME
curl https://dl.google.com/go/go1.22.2.linux-amd64.tar.gz | sudo tar -C/usr/local -zxvf -
cat <<'EOF' >>$HOME/.profile
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF
source $HOME/.profile
go version
cd $HOME
rm -rf initia
git clone https://github.com/initia-labs/initia.git
cd initia
git checkout v0.2.11
make install
initiad version
Replace NodeName with your own moniker.
initiad init NodeName --chain-id=initiation-1
curl -Ls https://ss-t.initia.nodestake.org/genesis.json > $HOME/.initia/config/genesis.json
curl -Ls https://ss-t.initia.nodestake.org/addrbook.json > $HOME/.initia/config/addrbook.json
sudo tee /etc/systemd/system/initiad.service > /dev/null <<EOF
[Unit]
Description=initiad Daemon
After=network-online.target
[Service]
User=$USER
ExecStart=$(which initiad) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable initiad
SNAP_NAME=$(curl -s https://ss-t.initia.nodestake.org/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")
curl -o - -L https://ss-t.initia.nodestake.top/${SNAP_NAME} | lz4 -c -d - | tar -x -C $HOME/.initia
sudo systemctl restart initiad
journalctl -u initiad -f
If you have any questions, please reach out to our Discord
https://rpc-t.initia.nodestake.org
https://api-t.initia.nodestake.org
https://grpc-t.initia.nodestake.org:443
https://ss-t.initia.nodestake.org/genesis.json
curl -Ls https://ss-t.initia.nodestake.org/genesis.json > $HOME/.initia/config/genesis.json
ba1848d052861128c0eb6b475f759216d59ac88f@rpc-t.initia.nodestake.org:666
seed="ba1848d052861128c0eb6b475f759216d59ac88f@rpc-t.initia.nodestake.org:666"
sed -i.bak -e "s/^seed *=.*/seed = \"$seed\"/" ~/.initia/config/config.toml
sudo systemctl restart initiad
journalctl -u initiad -f
https://ss-t.initia.nodestake.org/addrbook.json
curl -Ls https://ss-t.initia.nodestake.org/addrbook.json > $HOME/.initia/config/addrbook.json
sudo systemctl restart initiad
journalctl -u initiad -f
peers=$(curl -s https://ss-t.initia.nodestake.org/peers.txt)
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" ~/.initia/config/config.toml
sudo systemctl restart initiad
journalctl -u initiad -f
sudo systemctl stop initiad
initiad tendermint unsafe-reset-all --home ~/.initia/ --keep-addr-book
SNAP_RPC="https://rpc-t.initia.nodestake.org:443"
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 1000)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \
s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP_RPC,$SNAP_RPC\"| ; \
s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \
s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"|" ~/.initia/config/config.toml
more ~/.initia/config/config.toml | grep 'rpc_servers'
more ~/.initia/config/config.toml | grep 'trust_height'
more ~/.initia/config/config.toml | grep 'trust_hash'
sudo systemctl restart initiad
journalctl -u initiad -f
Get old Snapshots
We make the node snapshot every 12h
sudo apt update
sudo apt-get install snapd lz4 -y
sudo systemctl stop initia
cp $HOME/.initia/data/priv_validator_state.json $HOME/.initia/priv_validator_state.json.backup
rm -rf $HOME/.initia/data
initiad tendermint unsafe-reset-all --home ~/.initia/ --keep-addr-book
SNAP_NAME=$(curl -s https://ss-t.initia.nodestake.org/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")
curl -o - -L https://ss-t.initia.nodestake.org/${SNAP_NAME} | lz4 -c -d - | tar -x -C $HOME/.initia
mv $HOME/.initia/priv_validator_state.json.backup $initia/.evmosd/data/priv_validator_state.json
sudo systemctl restart initiad
journalctl -u initiad -f
Get old Snapshots
If you have any questions, please reach out to our Discord