logo

Nibiru testnet 1 guide

Minimum Hardware Requirements

  1. 4x CPUs; the faster clock speed the better
  2. 8GB RAM
  3. 100GB of storage (SSD or NVME)
  4. Permanent Internet connection (traffic will be minimal during testnet; 10Mbps will be plenty – for production at least 100Mbps is expected)

Recommended Hardware Requirements

  1. 8x CPUs; the faster clock speed the better
  2. 64GB RAM
  3. 1TB of storage (SSD or NVME)
  4. Permanent Internet connection (traffic will be minimal during testnet; 10Mbps will be plenty – for production at least 100Mbps is expected)

Install Goland

 cd $HOME
  wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz"
  sudo rm -rf /usr/local/go
  sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"
  rm "go$ver.linux-amd64.tar.gz"
  echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.bash_profile
  source ~/.bash_profile

Clone repository and install binary

cd $HOME && rm -rf nibiru
git clone https://github.com/NibiruChain/nibiru.git
cd nibiru
git checkout v0.15.0
make install

Initialize your node

nibid init Yourmoniker --chain-id nibiru-testnet-1

Download the latest genesis

curl -s https://rpc.testnet-1.nibiru.fi/genesis | jq -r .result.genesis > $HOME/.nibid/config/genesis.json

Setup the persistent peers

SEEDS=""
PEERS="37713248f21c37a2f022fbbb7228f02862224190@35.243.130.198:26656,ff59bff2d8b8fb6114191af7063e92a9dd637bd9@35.185.114.96:26656,cb431d789fe4c3f94873b0769cb4fce5143daf97@35.227.113.63:26656"
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.nibid/config/config.toml

Start your node as a service

sudo tee /etc/systemd/system/nibid.service > /dev/null <<EOF
[Unit]
Description=nibi
After=network-online.target

[Service]
User=$USER
ExecStart=$(which nibid) start --home $HOME/.nibid
Restart=on-failure
RestartSec=3
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable nibid
systemctl start nibid

Request coins

curl -X POST -d '{"address": "'"Yourwallet"'", "coins": ["10000000unibi","100000000000unusd"]}' https://faucet.testnet-1.nibiru.fi/

Create validator

nibid tx staking create-validator \
  --amount 2000000unibi \
  --from your_wallet \
  --commission-max-change-rate "0.01" \
  --commission-max-rate "0.2" \
  --commission-rate "0.07" \
  --min-self-delegation "1" \
  --pubkey  $(nibid tendermint show-validator) \
  --moniker Yourmoniker \
  --chain-id nibiru-testnet-1