Node Installation
Hardware requirements The following requirements are recommended for running INITIA:
6 or more physical CPU cores
At least 1TB of SSD disk storage
At least 8GB of memory (RAM)
At least 500mbps network bandwidth
Manual Installation
# Update & install dependencies
sudo apt update && sudo apt upgrade -y
sudo apt install clang pkg-config libssl-dev curl git wget htop tmux build-essential jq make lz4 gcc unzip -y
# Install Go
cd $HOME
sudo rm -rf /usr/local/go
curl -Ls https://go.dev/dl/go1.21.7.linux-amd64.tar.gz | sudo tar -xzf - -C /usr/local
eval $(echo 'export PATH=$PATH:/usr/local/go/bin' | sudo tee /etc/profile.d/golang.sh)
eval $(echo 'export PATH=$PATH:$HOME/go/bin' | tee -a $HOME/.profile)
go version
# Set Vars
MONIKER=<YOUR_MONIKER_NAME_GOES_HERE>
echo "export MONIKER=$MONIKER" >> $HOME/.bash_profile
echo "export INITIA_CHAIN_ID="initiation-1"" >> $HOME/.bash_profile
echo "export INITIA_PORT="39"" >> $HOME/.bash_profile
source $HOME/.bash_profile
# Download Binary
cd $HOME
git clone https://github.com/initia-labs/initia.git
cd initia
git checkout v0.2.14
make install
# Config and Init App
initiad init $MONIKER --chain-id $INITIA_CHAIN_ID
# Add Genesis File and Addrbook
wget -O $HOME/.initia/config/genesis.json https://testnet-files.syanodes.my.id/initia-genesis.json
wget -O $HOME/.initia/config/addrbook.json https://testnet-files.syanodes.my.id/initia-addrbook.json.json
#Configure Seeds and Peers
SEEDS=""
PEERS="f24e92c2b15ea8f212ec63ebae5451d8fcc7da8b@initia-t-rpc.syanodes.my.id:39656,[email protected]:56116,[email protected]:26628,[email protected]:26656,[email protected]:26656,[email protected]:25756,[email protected]:25756,[email protected]:25756,[email protected]:26656,[email protected]:46656,[email protected]:25756,[email protected]:26656,[email protected]:26656"
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.initia/config/config.toml
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.15uinit,0.01uusdc\"/" $HOME/.initia/config/app.toml
sed -i -e 's|^indexer *=.*|indexer = "null"|' $HOME/.initia/config/config.toml
sed -i 's|^prometheus *=.*|prometheus = true|' $HOME/.initia/config/config.toml
# Config Pruning
pruning="custom"
pruning_keep_recent="100"
pruning_keep_every="0"
pruning_interval="19"
sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/0gchain/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/.initia/config/app.toml
sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/.initia/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/.initia/config/app.toml
# Set Custom Port
sed -i.bak -e "s%:1317%:${INITIA_PORT}317%g;
s%:8080%:${INITIA_PORT}080%g;
s%:9090%:${INITIA_PORT}090%g;
s%:9091%:${INITIA_PORT}091%g;
s%:8545%:${INITIA_PORT}545%g;
s%:8546%:${INITIA_PORT}546%g;
s%:6065%:${INITIA_PORT}065%g" $HOME/.initia/config/app.toml
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
sed -i \
-e 's|^chain-id *=.*|chain-id = "initiation-1"|' \
-e 's|^keyring-backend *=.*|keyring-backend = "test"|' \
-e 's|^node *=.*|node = "tcp://localhost:39657"|' \
$HOME/.initia/config/client.toml
# Set Service File
sudo tee /etc/systemd/system/initiad.service > /dev/null <<EOF
[Unit]
Description=initia-testnet
After=network-online.target
[Service]
User=$USER
WorkingDirectory=$HOME/.initia
ExecStart=$(which initiad) start --home $HOME/.initia
Restart=on-failure
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
# Enable and Start Service
sudo systemctl daemon-reload
sudo systemctl enable initiad
sudo systemctl start initiad
sudo journalctl -fu initiad -o cat
Auto Installation
wget https://snapshot1.syanodes.my.id/testnet/initia_auto && chmod +x initia_auto && ./initia_auto
Last updated