Useful commands
List of commands used to manage the validator and node
Wallet interaction
Create Wallet
humansd keys add <WALLET_NAME>
Restore wallet
humansd keys add <WALLET_NAME> --recover
Show all wallets
Delete wallet
humansd keys delete <WALLET_NAME>
Export wallet
humansd keys export <WALLET_NAME>
Import wallet
humansd keys import <WALLET_NAME> <WALLET_NAME>.backup
Show balance
humansd q bank balances $(humansd keys show <WALLET_NAME> -a)
Validator control
Create a validator
humansd tx staking create-validator \
--amount=1000000000000000000aheart \
--pubkey=$(humansd tendermint show-validator) \
--moniker="<YOUR_MONIKER>" \
--identity=<YOUR_KEYBASE_ID> \
--details="<YOUR_DETAILS>" \
--chain-id=humans_1089-1 \
--commission-rate=0.10 \
--commission-max-rate=0.20 \
--commission-max-change-rate=0.01 \
--min-self-delegation=1 \
--from=<WALLET_NAME> \
--gas-prices=0.1aheart \
--gas-adjustment=1.5 \
--gas=auto \
-y
Edit validator
humansd tx staking edit-validator \
--new-moniker="<YOUR_MONIKER>" \
--identity=<YOUR_KEYBASE_ID> \
--details="<YOUR_DETAILS>" \
--chain-id=humans_1089-1 \
--commission-rate=0.1 \
--from=<WALLET_NAME> \
--gas-prices=0.1aheart \
--gas-adjustment=1.5 \
--gas=auto \
-y
Unjail
humansd tx slashing unjail --from <WALLET_NAME> --chain-id humans_1089-1 --gas-prices 0.1aheart --gas-adjustment 1.5 --gas auto -y
Jail reason
humansd query slashing signing-info $(humansd tendermint show-validator)
Active validators
humansd 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
humansd q staking validators -oj --limit=3000 | jq '.validators[] | select(.status=="BOND_STATUS_UNBONDED") or .status=="BOND_STATUS_UNBONDING")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " \t " + .description.moniker' | sort -gr | nl
Information about the validator
humansd q staking validator $(humansd keys show <WALLET_NAME> --bech val -a)
Balance management
Withdrawal of all rewards
humansd tx distribution withdraw-all-rewards --from <WALLET_NAME> --chain-id humans_1089-1 --gas-prices 0.1aheart --gas-adjustment 1.5 --gas auto -y
Withdrawal of rewards and commissions
humansd tx distribution withdraw-rewards $(humansd keys show <WALLET_NAME> --bech val -a) --commission --from <WALLET_NAME> --chain-id humans_1089-1 --gas-prices 0.1aheart --gas-adjustment 1.5 --gas auto -y
Self-delegation
humansd tx staking delegate $(humansd keys show <WALLET_NAME> --bech val -a) 1000000000000000000aheart --from <WALLET_NAME> --chain-id humans_1089-1 --gas-prices 0.1aheart --gas-adjustment 1.5 --gas auto -y
Delegation to validator
humansd tx staking delegate <TO_VALOPER_ADDRESS> 1000000000000000000aheart --from <WALLET_NAME> --chain-id humans_1089-1 --gas-prices 0.1aheart --gas-adjustment 1.5 --gas auto -y
Redelegation to another validator
humansd tx staking redelegate $(humansd keys show <WALLET_NAME> --bech val -a) <TO_VALOPER_ADDRESS> 1000000000000000000aheart --from <WALLET_NAME> --chain-id humans_1089-1 --gas-prices 0.1aheart --gas-adjustment 1.5 --gas auto -y
Unbond tokens
humansd tx staking unbond $(humansd keys show <WALLET_NAME> --bech val -a) 1000000000000000000aheart --from <WALLET_NAME> --chain-id humans_1089-1 --gas-prices 0.1aheart --gas-adjustment 1.5 --gas auto -y
Sending tokens to a wallet
humansd tx bank send <WALLET_NAME> <TO_WALLET_ADDRESS> 1000000000000000000aheart --from <WALLET_NAME> --chain-id humans_1089-1 --gas-prices 0.1aheart --gas-adjustment 1.5 --gas auto -y
Governance
All proposals
humansd query gov proposals
All proposals by ID
humansd query gov proposal 1
Vote "YES"
humansd tx gov vote 1 yes --from <WALLET_NAME> --chain-id humans_1089-1 --gas-prices 0.1aheart --gas-adjustment 1.5 --gas auto -y
Vote "NO"
humansd tx gov vote 1 no --from <WALLET_NAME> --chain-id humans_1089-1 --gas-prices 0.1aheart --gas-adjustment 1.5 --gas auto -y
Vote "Abstain"
humansd tx gov vote 1 abstain --from <WALLET_NAME> --chain-id humans_1089-1 --gas-prices 0.1aheart --gas-adjustment 1.5 --gas auto -y
Vote "NoWithVeto"
humansd tx gov vote 1 no_with_veto --from <WALLET_NAME> --chain-id humans_1089-1 --gas-prices 0.1aheart --gas-adjustment 1.5 --gas auto -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/.humans/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/.humans/config/app.toml
Disable Indexer
sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.humans/config/config.toml
Enable Indexer
sed -i 's|^indexer *=.*|indexer = "kv"|' $HOME/.humans/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/.humans/config/app.toml
Node support
Validator Info
humansd status 2>&1 | jq .ValidatorInfo
Sync info
humansd status 2>&1 | jq .SyncInfo.catching_up
Deleting a node
Before deleting a node make sure you save priv_validator_key.json
sudo systemctl stop humansd
sudo systemctl disable humansd
rm /etc/systemd/system/humansd.service
sudo systemctl daemon-reload
cd $HOME
rm -rf humans
rm -rf .humans
rm -rf $(which humansd)
Service setup
Reload service configuration
sudo systemctl daemon-reload
Enable service
sudo systemctl enable humansd
Disable service
sudo systemctl disable humansd
Start service
sudo systemctl start humansd
Stop service
sudo systemctl stop humansd
Restart service
sudo systemctl restart humansd
Check service status
sudo systemctl status humansd
Check service logs
sudo journalctl -u humansd -f --no-hostname -o cat
Last updated