Cheat Sheet
Wallet
Add New Wallet Key
kiichaind keys add wallet
Recover existing key
kiichaind keys add wallet --recover
List All Keys
kiichaind keys list
Query Wallet Balance
kiichaind q bank balances $(kiichaind keys show wallet -a)
Check sync status
kiichaind status 2>&1 | jq .sync_info.catching_up
Create Validator
Change your info "your_info"
kiichaind tx staking create-validator <(cat <<EOF
{
"pubkey": $(kiichaind tendermint show-validator),
"amount": "1000000akii",
"moniker": "Your_moniker",
"identity": "YOUR_KEYBASE_ID",
"website": "YOUR_WEBSITE_URL",
"security-contact": "YOUR_SECURITY_EMAIL",
"details": "YOUR_DETAILS",
"commission-rate": "0.05",
"commission-max-rate": "0.20",
"commission-max-change-rate": "0.05",
"min-self-delegation": "1"
}
EOF
) \
--from wallet \
--chain-id kiichain_1783-1 \
--gas auto \
--gas-adjustment 1.7 \
--gas-prices 350000000akii \
-y
Edit Existing Validator
kiichaind tx staking edit-validator \
--new-moniker="" \
--identity="" \
--website="" \
--details="" \
--from wallet \
--chain-id kiichain_1783-1 \
--gas auto \
--gas-adjustment 1.7 \
--gas-prices 350000000akii \
-y
Delegate Token to your own validator
kiichaind tx staking delegate $(kiichaind keys show wallet --bech val -a) 1000000000akii \
--from wallet \
--chain-id kiichain_1783-1 \
--gas auto \
--gas-adjustment 1.7 \
--gas-prices 350000000akii \
-y
Withdraw All
kiichaind tx distribution withdraw-all-rewards --from wallet \
--from wallet \
--chain-id kiichain_1783-1 \
--gas auto \
--gas-adjustment 1.7 \
--gas-prices 350000000akii \
-y
Withdraw Rewards with Comission
kiichaind tx distribution withdraw-rewards $(kiichaind keys show wallet --bech val -a) \
--commission \
--from wallet \
--chain-id kiichain_1783-1 \
--gas auto \
--gas-adjustment 1.7 \
--gas-prices 350000000akii \
-y
Unjail validator
kiichaind tx slashing unjail \
--from wallet \
--chain-id kiichain_1783-1 \
--gas auto \
--gas-adjustment 1.7 \
--gas-prices 350000000akii \
-y
Vote
kiichaind tx gov vote 18 yes \
--from wallet \
--chain-id kiichain_1783-1 \
--gas auto \
--gas-adjustment 1.7 \
--gas-prices 350000000akii \
-y
Services Management
# Reload Service
sudo systemctl daemon-reload
# Enable Service
sudo systemctl enable kiichaind
# Disable Service
sudo systemctl disable kiichaind
# Start Service
sudo systemctl start kiichaind
# Stop Service
sudo systemctl stop kiichaind
# Restart Service
sudo systemctl restart kiichaind
# Check Service Status
sudo systemctl status kiichaind
# Check Service Logs
sudo journalctl -u kiichaind -f --no-hostname -o cat
Backup Validator
cat $HOME/.kiichain/config/priv_validator_key.json
Remove node
cd $HOME && sudo systemctl stop kiichaind
sudo systemctl disable kiichaind
sudo rm /etc/systemd/system/kiichaind.service
sudo systemctl daemon-reload
rm -f $(which kiichaind)
rm -rf .kiichain
rm -rf kiichain