⚙️ Installation

🛠️ Hardware Requirements

Node TypeCPURAMStorage

Full (Minimum)

4v CPU

16 GB

300 GB SSD

Full (Recommended)

4v CPU

16 GB

1TB SSD

Additional requirements

  • For using the prebuilt nibid - you need to run Ubuntu - 20 or newer.

  • Go version - 1.21 or newer

Chain IDVersion tagBinary NameBinary Home

cataclysm-1

v1.3.0

nibid

$HOME/.nibid

⚡ Automatic installation

bash <(curl -s https://raw.githubusercontent.com/UnityNodes/scripts/main/nibiru/install-nibiru.sh)

📝 Manual installation

1️⃣ Installation packeges and dependencies

# Install dependencies for building from source
sudo apt update
sudo apt install -y lz4 jq make git gcc build-essential curl chrony unzip gzip snapd tmux bc

# Install Go
sudo rm -rf /usr/local/go
curl -L https://go.dev/dl/go1.21.6.linux-amd64.tar.gz | sudo tar -xzf - -C /usr/local
echo 'export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin' >> $HOME/.bash_profile
source .bash_profile

2️⃣ Install node

Replace "NODE_MONIKER" with your name moniker

# Clone project repository
cd $HOME
rm -rf nibiru
git clone https://github.com/NibiruChain/nibiru.git
cd nibiru
git checkout v1.3.0

# Build binary
make install

# Set node CLI configuration
nibid config node tcp://localhost:26657
nibid config keyring-backend os
nibid config chain-id cataclysm-1
source $HOME/.bash_profile

# Initialize the node
nibid init "NODE_MONIKER" --chain-id cataclysm-1

# Download genesis and addrbook files
curl -Ls https://snapshots-mainnet.unitynodes.com/nibiru-mainnet/genesis.json > $HOME/.nibid/config/genesis.json
curl -Ls https://snapshots-mainnet.unitynodes.com/nibiru-mainnet/addrbook.json > $HOME/.nibid/config/addrbook.json

# Set peers
PEERS=2def9fa7dfe945cdcde36e8086683c575e57fdb2@5.161.69.253:26656,9915b1353daa966c8e2cc9be4978710c9fb45eef@138.201.188.126:31256,ab2ae706ea5b5df1b306608b258c2232516bdc02@51.195.104.64:5656,063df1b08744f8150f2b00913a0cec9fcbd47ac8@51.89.173.96:55356,75ef1a4193d19788049a2a04115ed42c46f785f0@35.233.106.156:26656
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.nibid/config/config.toml

# Set minimum gas price
sed -i -e 's|^minimum-gas-prices *=.*|minimum-gas-prices = "0.000001unibi"|' $HOME/.nibid/config/app.toml

# Set pruning
sed -i \
  -e 's|^pruning *=.*|pruning = "custom"|' \
  -e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
  -e 's|^pruning-interval *=.*|pruning-interval = "17"|' \
  $HOME/.nibid/config/app.toml

# Download latest chain data snapshot
curl https://snapshots.aknodes.net/snapshots/nibiru-mainnet/snapshot-nibiru-mainnet.AKNodes.lz4 | lz4 -dc - | tar -xf - -C $HOME/.nibid

# Create a service
sudo tee /etc/systemd/system/nibid.service > /dev/null <<EOF
[Unit]
Description=nibid Daemon
After=network-online.target
[Service]
User=$USER
ExecStart=$(which nibid) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF

sudo systemctl daemon-reload
sudo systemctl enable nibid

# Start the service and check the logs
sudo systemctl start nibid.service
sudo journalctl -u nibid.service -f -o cat

📝 Create Validator

1️⃣ Create wallet

nibid keys add wallet

Save all information after entering the command, without this you will not be able to restore data to the wallet. SAVE SEED PHRASE (12 words).

2️⃣ Show priv_validator_key.json


cat $HOME/.nibid/config/priv_validator_key.json
SAVE YOUR PRIVATE KEY AFTER ENTERING THE COMMAND

3️⃣ Create validator

nibid tx staking create-validator \
  --amount 1000000unibi \
  --commission-max-change-rate "0.05" \
  --commission-max-rate "0.10" \
  --commission-rate "0.05" \
  --min-self-delegation "1" \
  --pubkey=$(nibid tendermint show-validator) \
  --moniker '' \ #Validator name, displayed in explorers. 
  --website "" \ #Your website is available, or leave the field blank
  --identity "" \ #Use your KeyBase ID. If you don't have one, leave it empty.
  --details "" \ #Any details about your validator.
  --security-contact="" \
  --chain-id cataclysm-1 \
  --from wallet #Wallet name, as specified during creation, or typically 'wallet'.

Last updated