Welcome to the Initia Node Setup Guide. This document will guide you through the process of setting up your Initia node, creating a wallet, managing your node, and submitting your node information.
- CPU: 4 cores
- Memory: 16GB RAM
- Disk: 1 TB SSD Storage
-
Download and prepare the installation script:
wget -O initia.sh https://raw.githubusercontent.com/shidiqmuh0/initia-node/main/initia.sh chmod +x initia.sh
-
Run the installation script and follow the prompts to input your name:
./initia.sh
-
Load the new profile settings:
source $HOME/.bash_profile
- Create a new wallet:
Important: Backup your mnemonic phrase and wallet information securely. Do not share this information with anyone.
initiad keys add wallet
Get testnet tokens from the faucet: Initia Faucet
-
View your wallet details:
initiad keys list
-
Check your wallet balance:
initiad q bank balances $(initiad keys show wallet -a)
- Submit a transaction to create a validator:
initiad tx mstaking create-validator \ --amount 1000000uinit \ --pubkey $(initiad tendermint show-validator) \ --moniker "your_moniker" \ --details "your_detail" \ --website "your_web_or_twitter" \ --chain-id initiation-1 \ --commission-rate 0.05 \ --commission-max-rate 0.20 \ --commission-max-change-rate 0.05 \ --from wallet \ --gas-adjustment 1.4 \ --gas 10000000 \ --gas-prices 0.15uinit
-
Check logs:
sudo journalctl -u initiad -f
-
Check blocks left to sync:
local_height=$(initiad status | jq -r .sync_info.latest_block_height) network_height=$(curl -s https://rpc-initia-testnet.trusted-point.com/status | jq -r .result.sync_info.latest_block_height) blocks_left=$((network_height - local_height)) echo "Your node height: $local_height" echo "Network height: $network_height" echo "Blocks left: $blocks_left"
-
Check sync status:
initiad status 2>&1 | jq .sync_info
in the inactive section
- Backup your
priv_validator_key.json
file:Important: Backup this file securely and do not share it with anyone.cd $HOME/.initia/config cat priv_validator_key.json
Complete the following form to submit your node information: Node Information Form
sudo systemctl stop initiad
sudo systemctl start initiad
sudo systemctl restart initiad
Before update your peers, please stop your node first
PEERS=$(curl -s --max-time 3 --retry 2 --retry-connrefused "https://raw.githubusercontent.com/shidiqmuh0/initia-node/main/peers.txt")
if [ -z "$PEERS" ]; then
echo "No peers were retrieved from the URL."
else
echo -e "
PEERS: "$PEERS""
sed -i "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" "$HOME/.initia/config/config.toml"
echo -e "
Configuration file updated successfully.
"
fi
sed -i "s/^indexer *=.*/indexer = \"null\"/" $HOME/.initia/config/config.toml
sudo systemctl restart initiad && sudo journalctl -u initiad -f -o cat
and run the command to see how many blocks left.
local_height=$(initiad status | jq -r .sync_info.latest_block_height); network_height=$(curl -s https://rpc-initia-testnet.trusted-point.com/status | jq -r .result.sync_info.latest_block_height); blocks_left=$((network_height - local_height)); echo "Your node height: $local_height"; echo "Network height: $network_height"; echo "Blocks left: $blocks_left"
By following this guide, you will successfully set up and manage your Initia node. If you encounter any issues, refer to the official documentation or community forums for additional support.
Ikan Cupang, @sxlmnwb, @ashitherewego