Useful commands
Service operations ⚙️
Check logs
sudo journalctl -u titand -f
Start service
sudo systemctl start titand
Stop service
sudo systemctl stop titand
Restart service
sudo systemctl restart titand
Check service status
sudo systemctl status titand
Reload services
sudo systemctl daemon-reload
Enable Service
sudo systemctl enable titand
Disable Service
sudo systemctl disable titand
Sync info
titand status 2>&1 | jq .SyncInfo
Node info
titand status 2>&1 | jq .NodeInfo
Your node peer
echo $(titand tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.titan/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
Key management
Add New Wallet
titand keys add $WALLET
Restore executing wallet
titand keys add $WALLET --recover
List All Wallets
titand keys list
Delete wallet
titand keys delete $WALLET
Check Balance
titand q bank balances $(titand keys show $WALLET -a)
Export Key (save to wallet.backup)
titand keys export $WALLET
View EVM Prived Key
titand keys unsafe-export-eth-key $WALLET
Import Key (restore from wallet.backup)
titand keys import $WALLET wallet.backup
Tokens
To valoper addressTo wallet addressAmount, uttnt
Withdraw all rewards
titand tx distribution withdraw-all-rewards --from $WALLET --chain-id titan-test-4 --gas 300000 --fees 2000uttnt
Withdraw rewards and commission from your validator
titand tx distribution withdraw-rewards $VALOPER_ADDRESS_titan --from $WALLET --commission --chain-id titan-test-4 --gas 300000 --fees 2000uttnt -y
Check your balance
titand query bank balances $WALLET_ADDRESS_titan
Delegate to Yourself
titand tx staking delegate $(titand keys show $WALLET --bech val -a) 1000000uttnt --from $WALLET --chain-id titan-test-4 --gas 300000 --fees 2000uttnt -y
Delegate
titand tx staking delegate <TO_VALOPER_ADDRESS> 1000000uttnt --from $WALLET --chain-id titan-test-4 --gas 300000 --fees 2000uttnt -y
Redelegate Stake to Another Validator
titand tx staking redelegate $VALOPER_ADDRESS_titan <TO_VALOPER_ADDRESS> 1000000uttnt --from $WALLET --chain-id titan-test-4 --gas 300000 --fees 2000uttnt -y
Unbond
titand tx staking unbond $(titand keys show $WALLET --bech val -a) 1000000uttnt --from $WALLET --chain-id titan-test-4 --gas 300000 --fees 2000uttnt -y
Transfer Funds
titand tx bank send $WALLET_ADDRESS_titan <TO_WALLET_ADDRESS> 1000000uttnt --gas 300000 --fees 2000uttnt -y
Validator operations
MonikerIdentityDetailsAmount, uttntCommission rateCommission max rateCommission max change rate
Create New Validator
titand tx staking create-validator \
--amount 1000000uttnt \
--from $WALLET \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $(titand tendermint show-validator) \
--moniker "$MONIKER" \
--identity "" \
--details "I love blockchain 💚" \
--chain-id titan-test-4 \
--gas 300000 --fees 2000uttnt \
-y
Edit Existing Validator
titand tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "I love blockchain 💚" \
--from $WALLET \
--chain-id titan-test-4 \
--gas 300000 --fees 2000uttnt \
-y
Validator info
titand status 2>&1 | jq .ValidatorInfo
Validator Details
titand q staking validator $(titand keys show $WALLET --bech val -a)
Jailing info
titand q slashing signing-info $(titand tendermint show-validator)
Slashing parameters
titand q slashing params
Unjail validator
titand tx slashing unjail --from $WALLET --chain-id titan-test-4 --gas 300000 --fees 2000uttnt -y
Active Validators List
titand 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 | nl
Check Validator key
[[ $(titand q staking validator $VALOPER_ADDRESS_titan -oj | jq -r .consensus_pubkey.key) = $(titand status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"
Signing info
titand q slashing signing-info $(titand tendermint show-validator)
Governance
TitleDescriptionDeposit, uttnt
Create New Text Proposal
titand tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000uttnt \
--type Text \
--from $WALLET \
--gas 300000 --fees 2000uttnt \
-y
Proposals List
titand query gov proposals
Proposal IDProposal optionYesNoNo with vetoAbstain
View proposal
titand query gov proposal 1
Vote
titand tx gov vote 1 yes --from $WALLET --chain-id titan-test-4 --gas 300000 --fees 2000uttnt -y
Last updated