Skip to content

Latest commit

 

History

History
173 lines (132 loc) · 4.71 KB

README.md

File metadata and controls

173 lines (132 loc) · 4.71 KB

Initia Node Setup Guide

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.

Help me, to stake on my validator

Minimum Requirements

  • CPU: 4 cores
  • Memory: 16GB RAM
  • Disk: 1 TB SSD Storage

Install Node

  1. Download and prepare the installation script:

    wget -O initia.sh https://raw.githubusercontent.com/shidiqmuh0/initia-node/main/initia.sh
    chmod +x initia.sh
  2. Run the installation script and follow the prompts to input your name:

    ./initia.sh
  3. Load the new profile settings:

    source $HOME/.bash_profile

Before your create wallet and validator, please sync your node first

Create Wallet

  1. Create a new wallet:
    initiad keys add wallet
    Important: Backup your mnemonic phrase and wallet information securely. Do not share this information with anyone.

Get Testnet Tokens

Get testnet tokens from the faucet: Initia Faucet

Wallet Management

  1. View your wallet details:

    initiad keys list
  2. Check your wallet balance:

    initiad q bank balances $(initiad keys show wallet -a)

Create Validator

  1. 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

Monitor Node

  1. Check logs:

    sudo journalctl -u initiad -f
  2. 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"
  3. Check sync status:

    initiad status 2>&1 | jq .sync_info

Check Your Node Here

Validator

in the inactive section

Backup Validator Key

  1. Backup your priv_validator_key.json file:
    cd $HOME/.initia/config
    cat priv_validator_key.json
    Important: Backup this file securely and do not share it with anyone.

Submit Node Information

Complete the following form to submit your node information: Node Information Form

Stop Node

sudo systemctl stop initiad

Start node

sudo systemctl start initiad

Restart node

sudo systemctl restart initiad

Update Peers

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

If your node can't catch up try to disable indexer in config.toml and restart

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.

Thanks to for helping

Ikan Cupang, @sxlmnwb, @ashitherewego