Useful commands
List of commands used to manage the validator and node
Wallet interaction
Create Wallet
uptickd keys add <WALLET_NAME>
Restore wallet
uptickd keys add <WALLET_NAME> --recover
Show all wallets
Delete wallet
uptickd keys delete <WALLET_NAME>
Export wallet
uptickd keys export <WALLET_NAME>
Import wallet
uptickd keys import <WALLET_NAME> <WALLET_NAME>.backup
Show balance
uptickd q bank balances $(uptickd keys show <WALLET_NAME> -a)
Validator control
Create a validator
uptickd tx staking create-validator \
--chain-id uptick_117-1 \
--commission-rate=0.1 \
--commission-max-rate=0.2 \
--commission-max-change-rate=0.1 \
--min-self-delegation="1" \
--amount=1000000000000000000auptick \
--pubkey $(uptickd tendermint show-validator) \
--moniker "<YOUR_MONIKER>" \
--from=<WALLET_NAME> \
--gas="auto" \
--fees 1000000auptick
Edit validator
uptickd tx staking edit-validator \
--new-moniker="<YOUR_MONIKER>" \
--identity="<YOUR_KEYBASE_ID>" \
--details="<YOUR_DETAILS>" \
--website="<YOUR_WEBSITE_URL>"
--chain-id=uptick_117-1 \
--commission-rate=0.1 \
--from=<WALLET_NAME> \
--fees 1000000auptick \
-y
Unjail
uptickd tx slashing unjail --from <WALLET_NAME> --chain-id uptick_117-1 --fees 1000000auptick -y
Jail reason
uptickd query slashing signing-info $(uptickd tendermint show-validator)
Active validators
uptickd q staking validators -oj --limit=3000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " \t " + .description.moniker' | sort -gr | nl
Inactive validators
uptickd q staking validators -oj --limit=3000 | jq '.validators[] | select(.status=="BOND_STATUS_UNBONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " \t " + .description.moniker' | sort -gr | nl
Information about the validator
uptickd q staking validator $(uptickd keys show <WALLET_NAME> --bech val -a)
Balance management
Withdrawal of all rewards
uptickd tx distribution withdraw-all-rewards --from <WALLET_NAME> --chain-id uptick_117-1 --fees 1000000auptick -y
Withdrawal of rewards and commissions
uptickd tx distribution withdraw-rewards $(uptickd keys show <WALLET_NAME> --bech val -a) --commission --from <WALLET_NAME> --chain-id uptick_117-1 --fees 1000000auptick -y
Self-delegation
uptickd tx staking delegate $(uptickd keys show <WALLET_NAME> --bech val -a) 1000000000000000000auptick --from <WALLET_NAME> --chain-id uptick_117-1 --fees 1000000auptick -y
Delegation to validator
uptickd tx staking delegate $(uptickd keys show <WALLET_NAME> --bech val -a) 1000000000000000000auptick --from <WALLET_NAME> --chain-id uptick_117-1 --fees 1000000auptick -y
Redelegation to another validator
uptickd tx staking redelegate $(uptickd keys show <WALLET_NAME> --bech val -a) <TO_VALOPER_ADDRESS> 1000000000000000000auptick --from <WALLET_NAME> --chain-id uptick_117-1 --fees 1000000auptick -y
Unbond tokens
uptickd tx staking unbond $(uptickd keys show <WALLET_NAME> --bech val -a) 1000000000000000000auptick --from <WALLET_NAME> --chain-id uptick_117-1 --fees 1000000auptick -y
Sending tokens to a wallet
uptickd tx bank send <WALLET_NAME> <TO_WALLET_ADDRESS> 1000000000000000000auptick --fees 1000000auptick --from <WALLET_NAME> --chain-id uptick_117-1
Governance
All proposals
uptickd query gov proposals
All proposals by ID
uptickd query gov proposal 1
Vote "YES"
uptickd tx gov vote 1 yes --from <WALLET_NAME> --chain-id uptick_117-1 --fees 1000000auptick -y
Vote "NO"
uptickd tx gov vote 1 no --from <WALLET_NAME> --chain-id uptick_117-1 --fees 1000000auptick -y
Vote "Abstain"
uptickd tx gov vote 1 abstain --from <WALLET_NAME> --chain-id uptick_117-1 --fees 1000000auptick -y
Vote "NoWithVeto"
uptickd tx gov vote 1 nowithveto --from <WALLET_NAME> --chain-id uptick_117-1 --fees 1000000auptick -y
Utility
Update ports
CUSTOM_PORT=10
sed -i.bak -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:${CUSTOM_PORT}658\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:${CUSTOM_PORT}657\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:${CUSTOM_PORT}060\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:${CUSTOM_PORT}656\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":${CUSTOM_PORT}660\"%" $HOME/.uptickd/config/config.toml
sed -i.bak -e "s%^address = \"tcp://0.0.0.0:1317\"%address = \"tcp://0.0.0.0:${CUSTOM_PORT}317\"%; s%^address = \":8080\"%address = \":${CUSTOM_PORT}080\"%; s%^address = \"0.0.0.0:9090\"%address = \"0.0.0.0:${CUSTOM_PORT}090\"%; s%^address = \"0.0.0.0:9091\"%address = \"0.0.0.0:${CUSTOM_PORT}091\"%" $HOME/.uptickd/config/app.toml
Disable Indexer
sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.uptickd/config/config.toml
Enable Indexer
sed -i 's|^indexer *=.*|indexer = "kv"|' $HOME/.uptickd/config/config.toml
Update pruning
sed -i.bak -e 's|^pruning *=.*|pruning = "custom"|; s|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|; s|^pruning-keep-every *=.*|pruning-keep-every = "0"|; s|^pruning-interval *=.*|pruning-interval = "10"|' $HOME/.uptickd/config/app.toml
Node support
Validator Info
uptickd status 2>&1 | jq .ValidatorInfo
Sync info
uptickd status 2>&1 | jq .SyncInfo
Deleting a node
Before deleting a node make sure you save priv_validator_key.json
sudo systemctl stop uptickd
sudo systemctl disable uptickd
rm /etc/systemd/system/uptickd.service
sudo systemctl daemon-reload
cd $HOME
rm -rf .uptickd
rm -rf uptick
rm -rf $(which uptickd)
Service setup
Reload service configuration
sudo systemctl daemon-reload
Enable service
sudo systemctl enable uptickd
Disable service
sudo systemctl disable uptickd
Start service
sudo systemctl start uptickd
Stop service
sudo systemctl stop uptickd
Restart service
sudo systemctl restart uptickd
Check service status
sudo systemctl status uptickd
Check service logs
sudo journalctl -u uptickd -f --no-hostname -o cat
Last updated