Cheat Sheet
Wallet
Add New Wallet Key
nexaraild keys add wallet
Recover existing key
nexaraild keys add wallet --recover
List All Keys
nexaraild keys list
Query Wallet Balance
nexaraild q bank balances $(nexaraild keys show wallet -a)
Check sync status
nexaraild status 2>&1 | jq .SyncInfo.catching_up
Create Validator
Change your info "your_info"
nexaraild tx staking create-validator \
--amount=1000000unxrl \
--pubkey=$(nexaraild tendermint show-validator) \
--moniker="Your_node_name" \
--identity="" \
--website="" \
--details="" \
--chain-id=nexarail-mainnet-1 \
--commission-rate="0.10" \
--commission-max-rate="0.20" \
--commission-max-change-rate="0.01" \
--min-self-delegation="1" \
--gas=auto --gas-adjustment=1.4 --gas-prices=0.025unxrl \
--from=wallet
Edit Existing Validator
nexaraild tx staking edit-validator \
--identity="" \
--website="" \
--details="" \
--from wallet \
--chain-id nexarail-mainnet-1 \
--fees 6000unxrl \
-y
Delegate Token to your own validator
nexaraild tx staking delegate $(nexaraild keys show wallet --bech val -a) 100000000unxrl \
--from wallet \
--chain-id nexarail-mainnet-1 \
--gas auto \
--gas-adjustment 1.3 \
--gas-prices 0.025unxrl \
-y
Withdraw All
nexaraild tx distribution withdraw-all-rewards --from wallet \
--from wallet \
--chain-id nexarail-mainnet-1 \
--gas auto \
--gas-adjustment 1.3 \
--gas-prices 0.025unxrl \
-y
Withdraw Rewards with Comission
nexaraild tx distribution withdraw-rewards $(nexaraild keys show wallet --bech val -a) \
--commission \
--from wallet \
--chain-id nexarail-mainnet-1 \
--gas auto \
--gas-adjustment 1.3 \
--gas-prices 0.025unxrl \
-y
Unjail validator
nexaraild tx slashing unjail \
--from=wallet \
--chain-id=nexarail-mainnet-1 \
--gas=auto --gas-adjustment=1.3 --gas-prices=0.025unxrl \
-y
Vote
nexaraild tx gov vote 1 yes \
--from wallet \
--chain-id nexarail-mainnet-1 \
--keyring-backend test \
--gas auto \
--gas-adjustment 1.3 \
--gas-prices 0.025unxrl \
-y
Services Management
# Reload Service
sudo systemctl daemon-reload
# Enable Service
sudo systemctl enable nexaraild
# Disable Service
sudo systemctl disable nexaraild
# Start Service
sudo systemctl start nexaraild
# Stop Service
sudo systemctl stop nexaraild
# Restart Service
sudo systemctl restart nexaraild
# Check Service Status
sudo systemctl status nexaraild
# Check Service Logs
sudo journalctl -u nexaraild -f --no-hostname -o cat
Backup Validator
cat $HOME/.nexarail/config/priv_validator_key.json
Remove node
cd $HOME && sudo systemctl stop nexaraild
sudo systemctl disable nexaraild
sudo rm /etc/systemd/system/nexaraild.service
sudo systemctl daemon-reload
rm -f $(which nexaraild)
rm -rf .nexarail
rm -rf nexarail