☑️ Nillion Validator NodeRecommended Hardware: 8 Cores, 64GB RAM, 500GB of storage (NVME)
Installation
Install dependencies, if needed
Copy sudo apt update && \
sudo apt install curl git jq build-essential gcc unzip wget lz4 -y
Install go, if needed
Copy cd $HOME
VER = "1.21.6"
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"
[ ! -f ~ /.bash_profile ] && touch ~/.bash_profile
echo "export PATH=$PATH:/usr/local/go/bin:~/go/bin" >> ~/.bash_profile
source $HOME /.bash_profile
[ ! -d ~ /go/bin ] && mkdir -p ~/go/bin
Build 0gchaind binary from source
Copy cd $HOME
wget -O nilchaind https://explorer.dongqn.com/guidenode/nillion/nilchaind
chmod +x nilchaind
mv nilchaind $HOME /go/bin/
nilchaind version
Setup your variable settings
Copy nilchaind config set client chain-id nillion-chain-testnet-1
nilchaind config set client keyring-backend test
nilchaind config set client node tcp://localhost:18057
Initialize node & create home directory
Copy cd $HOME
nilchaind init dongqn --chain-id nillion-chain-testnet-1 --home=$HOME/.nillionapp
Download genesis file
Copy curl -Ls https://explorer.dongqn.com/guidenode/nillion/genesis.json > $HOME/.nillionapp/config/genesis.json
curl -Ls https://explorer.dongqn.com/guidenode/nillion/addrbook.json > $HOME/.nillionapp/config/addrbook.json
Set nillion chain seeds
Copy SEEDS="3f472746f46493309650e5a033076689996c8881@nillion-testnet.rpc.kjnodes.com:18059" && \
sed -i.bak -e "s/^seeds *=.*/seeds = \"${SEEDS}\"/" $HOME/.nillionapp/config/config.toml
Set min gas price
Copy sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0unil\"|" $HOME/.nillionapp/config/app.toml
Pruning (Optional to save storage space)
Copy sed -i \
-e 's|^pruning *=.*|pruning = "custom"|' \
-e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
-e 's|^pruning-keep-every *=.*|pruning-keep-every = "0"|' \
-e 's|^pruning-interval *=.*|pruning-interval = "19"|' \
$HOME/.nillionapp/config/app.toml
Create nillion service for your node to run in the background
Copy sudo tee /etc/systemd/system/nillion.service > /dev/null <<EOF
[Unit]
Description=Nillion Node
After=network.target
[Service]
User=$USER
Type=simple
ExecStart=$(which nilchaind) start --home $HOME/.nillionapp
Restart=on-failure
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
Start node
Copy sudo systemctl daemon-reload && \
sudo systemctl enable nillion && \
sudo systemctl restart nillion && \
sudo journalctl -u nillion -f -o cat
Check for your syncing progress
Copy nilchaind status --node tcp://127.0.0.1:26657 2>&1 | jq
Create wallet
Copy nilchaind keys add $WALLET_NAME
# DO NOT FORGET TO SAVE THE SEED PHRASE & YOUR PASSPHRASE YOU SET FOR THIS WALLET
# You can add --recover flag to restore existing key instead of creating
Check your wallet balance (node must be synced in order to see the current balance)
Copy nilchaind q bank balances $(nilchaind keys show $WALLET_NAME -a)
Last updated 2 months ago