Useful commands
Service operations ⚙️
Check logs
sudo journalctl -u ojod -fStart service
sudo systemctl start ojodStop service
sudo systemctl stop ojodRestart service
sudo systemctl restart ojodCheck service status
sudo systemctl status ojodReload services
sudo systemctl daemon-reloadEnable Service
sudo systemctl enable ojodDisable Service
sudo systemctl disable ojodSync info
ojod status 2>&1 | jq .SyncInfoNode info
ojod status 2>&1 | jq .NodeInfoYour node peer
echo $(ojod tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.ojo/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')Key management
Add New Wallet
ojod keys add $WALLETRestore executing wallet
ojod keys add $WALLET --recoverList All Wallets
ojod keys listDelete wallet
ojod keys delete $WALLETCheck Balance
ojod q bank balances $(ojod keys show $WALLET -a)Export Key (save to wallet.backup)
ojod keys export $WALLETImport Key (restore from wallet.backup)
ojod keys import $WALLET wallet.backupTokens
Withdraw all rewards
ojod tx distribution withdraw-all-rewards --from $WALLET --chain-id ojo-devnet --gas auto --gas-adjustment 1.5Withdraw rewards and commission from your validator
ojod tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --commission --chain-id ojo-devnet --gas auto --gas-adjustment 1.5 -yCheck your balance
ojod query bank balances $WALLET_ADDRESSDelegate to Yourself
ojod tx staking delegate $(ojod keys show $WALLET --bech val -a) 1000000uojo --from $WALLET --chain-id ojo-devnet --gas auto --gas-adjustment 1.5 -yDelegate
ojod tx staking delegate <TO_VALOPER_ADDRESS> 1000000uojo --from $WALLET --chain-id ojo-devnet --gas auto --gas-adjustment 1.5 -yRedelegate Stake to Another Validator
ojod tx staking redelegate $VALOPER_ADDRESS <TO_VALOPER_ADDRESS> 1000000uojo --from $WALLET --chain-id ojo-devnet --gas auto --gas-adjustment 1.5 -yUnbond
ojod tx staking unbond $(ojod keys show $WALLET --bech val -a) 1000000uojo --from $WALLET --chain-id ojo-devnet --gas auto --gas-adjustment 1.5 -yTransfer Funds
ojod tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> 1000000uojo --gas auto --gas-adjustment 1.5 -yValidator operations
Create New Validator
ojod tx staking create-validator \
--amount 1000000uojo \
--from $WALLET \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $(ojod tendermint show-validator) \
--moniker "$MONIKER" \
--identity "" \
--details "XXXXXXXXXX" \
--chain-id ojo-devnet \
--gas auto --gas-adjustment 1.5 \
-yEdit Existing Validator
ojod tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "XXXXXXXXXXXXX" \
--from $WALLET \
--chain-id ojo-devnet \
--gas auto --gas-adjustment 1.5 \
-yValidator info
ojod status 2>&1 | jq .ValidatorInfoValidator Details
ojod q staking validator $(ojod keys show $WALLET --bech val -a)Jailing info
ojod q slashing signing-info $(ojod tendermint show-validator)Unjail validator
ojod tx slashing unjail --from $WALLET --chain-id ojo-devnet --gas auto --gas-adjustment 1.5 -yActive Validators List
ojod q staking validators -oj --limit=2000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " " + .description.moniker' | sort -gr | nlCheck Validator key
[[ $(ojod q staking validator $VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = $(ojod status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"Signing info
ojod q slashing signing-info $(ojod tendermint show-validator)Governance
Create New Text Proposal
ojod tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000uojo \
--type Text \
--from $WALLET \
--gas auto --gas-adjustment 1.5 \
-y Proposals List
ojod query gov proposalsProposal
View proposal
ojod query gov proposal 1Vote
ojod tx gov vote 1 yes --from $WALLET --chain-id ojo-devnet --gas auto --gas-adjustment 1.5 -yDelete Node
sudo systemctl stop ojod
sudo systemctl disable ojod
sudo rm -rf /etc/systemd/system/ojod.service
sudo rm $(which ojod)
sudo rm -rf $HOME/.ojo
sed -i "/OJO_/d" $HOME/.bash_profileLast updated