Commands
A set of useful commonly used commands for node operators
Key Management
Add a new key
nibid keys add wallet_nameRecover an existing wallet
nibid keys add wallet_name --recoverList all keys
nibid keys listValidator Management
Create a new validator
nibid tx staking create-validator \
--amount=1000000 \
--pubkey=$(nibid tendermint show-validator) \
--moniker="YOUR_MONIKER_NAME" \
--identity="YOUR_KEYBASE_ID" \
--details="YOUR_DETAILS" \
--website="YOUR_WEBSITE_URL"
--chain-id=nibiru-testnet-2 \
--commission-rate=0.05 \
--commission-max-rate=0.20 \
--commission-max-change-rate=0.01 \
--min-self-delegation=1 \
--from=wallet_name \
--gas-adjustment=1.4 \
--gas=auto \
--gas-prices=0.005unibiUnjail a validator
nibid tx slashing unjail --from wallet_name --chain-id nibiru-testnet-2 --gas-adjustment 1.0 --gas auto --gas-prices 0.005unibiQuery Jail Reason
nibid query slashing signing-info $(nibid tendermint show-validator)Token Management
Query wallet balance
nibid q bank balances $(nibid keys show wallet -a)Withdraw all rewards from validator, excluding commission
nibid tx distribution withdraw-all-rewards --from wallet_name --chain-id nibiru-testnet-2 --gas-adjustment 1.0 --gas auto --gas-prices 0.005unibiWithdraw all rewards and commission from validator
nibid tx distribution withdraw-rewards $(nibid keys show wallet --bech val -a) --commission --from wallet_name --chain-id nibiru-testnet-2 --gas-adjustment 1.0 --gas auto --gas-prices 0.005unibiDelegate tokens to yourself
nibid tx staking delegate $(nibid keys show wallet --bech val -a) 1000000unibi --from wallet_name --chain-id nibiru-testnet-2 --gas-adjustment 1.0 --gas auto --gas-prices 0.005unibiGovernance
List all proposals
nibid query gov proposalsView a specific proposal
NOTE: Replace 1 with the desired proposal id
nibid query gov proposal 1Vote on a proposal
NOTE: Replace "1" with the desired proposal id. Replace "yes" with one of the cli commands from the table below.
The valid vote options are:
yes
Yes
Vote to pass the proposal
no
No
Vote to not pass the proposal
abstain
Abstain
Vote to abstain from the proposal
nowithveto
No With Veto
Vote to fail the proposal and burn the deposit. Typically only used for spam/scam proposals
nibid tx gov vote 1 yes --from wallet_name --chain-id nibiru-testnet-2 --gas-adjustment 1.0 --gas auto --gas-prices 0.005unibiConfig Changes
Maintenance and status
Get validator info
nibid status 2>&1 | jq .ValidatorInfoGet syncing info
nibid status 2>&1 | jq .SyncInfoGet live peers
NOTE: Replace the
CUSTOM_PORTvalue as needed. 26657 is the default port, but can change based on theconfig.tomlsettings.
CUSTOM_PORT="26657" && \
curl -sS http://localhost:${CUSTOM_PORT}/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}'Reset chain data
nibid tendermint unsafe-reset-all --home $HOME/.nibiru --keep-addr-book || \
nibid unsafe-reset-all --home $HOME/.nibiru --keep-addr-bookLinux Service Management
Check daemon/cosmovisor logs
NOTE: Replace
cosmovisorwith the systemd service name if different
sudo journalctl -fu cosmovisor -o catLast updated