Mainnet
NexaRail
- Chain ID
Run these after the install guide, which sets $WALLET, $MONIKER and the chain variables.
Keys and wallet
Add a new key
nexaraild keys add $WALLETRecover a key
nexaraild keys add $WALLET --recoverList keys
nexaraild keys listWallet balance
nexaraild q bank balances $(nexaraild keys show $WALLET -a)
Validator
Create a validator
cat > $HOME/validator.json << EOF { "pubkey": $(nexaraild comet show-validator), "amount": "1000000unxrl", "moniker": "$MONIKER", "identity": "", "website": "", "security": "", "details": "", "commission-rate": "0.05", "commission-max-rate": "0.20", "commission-max-change-rate": "0.05", "min-self-delegation": "1" } EOF nexaraild tx staking create-validator $HOME/validator.json --from $WALLET --chain-id $NXRL_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.025unxrl -yEdit the validator
nexaraild tx staking edit-validator --new-moniker "$MONIKER" --identity "" --website "" --details "" --from $WALLET --chain-id $NXRL_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.025unxrl -yUnjail
nexaraild tx slashing unjail --from $WALLET --chain-id $NXRL_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.025unxrl -yValidator details
nexaraild q staking validator $(nexaraild keys show $WALLET --bech val -a)
Tokens
Withdraw all rewards
nexaraild tx distribution withdraw-all-rewards --from $WALLET --chain-id $NXRL_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.025unxrl -yWithdraw commission and rewards
nexaraild tx distribution withdraw-rewards $(nexaraild keys show $WALLET --bech val -a) --commission --from $WALLET --chain-id $NXRL_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.025unxrl -yDelegate to yourself
nexaraild tx staking delegate $(nexaraild keys show $WALLET --bech val -a) 1000000unxrl --from $WALLET --chain-id $NXRL_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.025unxrl -yRedelegate
nexaraild tx staking redelegate $(nexaraild keys show $WALLET --bech val -a) <TO_VALOPER> 1000000unxrl --from $WALLET --chain-id $NXRL_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.025unxrl -yUnbond
nexaraild tx staking unbond $(nexaraild keys show $WALLET --bech val -a) 1000000unxrl --from $WALLET --chain-id $NXRL_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.025unxrl -ySend tokens
nexaraild tx bank send $WALLET <TO_ADDRESS> 1000000unxrl --chain-id $NXRL_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.025unxrl -y
Governance
List proposals
nexaraild q gov proposalsView a proposal
nexaraild q gov proposal <ID>Vote
nexaraild tx gov vote <ID> yes --from $WALLET --chain-id $NXRL_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.025unxrl -y # yes | no | abstain | no_with_veto
Maintenance
Node status
nexaraild status 2>&1 | jqNode peer address
echo $(nexaraild comet show-node-id)@$(wget -qO- eth0.me):$NXRL_PORT656Live peers
curl -s localhost:$NXRL_PORT657/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr | split(":") | last)"' | paste -sd,Check the validator key
[[ $(nexaraild q staking validator $(nexaraild keys show $WALLET --bech val -a) -o json | jq -r .validator.consensus_pubkey.value) = $(nexaraild comet show-validator | jq -r .key) ]] && echo "match" || echo "MISMATCH"Reset chain data
nexaraild comet unsafe-reset-all --keep-addr-book --home $HOME/.nexarailRemove the node
sudo systemctl stop nexaraild sudo systemctl disable nexaraild sudo rm /etc/systemd/system/nexaraild.service sudo systemctl daemon-reload rm -rf $HOME/.nexarail $(which nexaraild)
Service
Service status
sudo systemctl status nexaraildFollow logs
sudo journalctl -fu nexaraild -o catRestart
sudo systemctl restart nexaraildStop
sudo systemctl stop nexaraild