Testnet Networks
Cheat Sheet

🔑 Key management

ADD NEW Key

kiichaind keys add wallet

Recover existing key

kiichaind keys add wallet --recover

List all keys

kiichaind keys list

Delete key

kiichaind keys delete wallet

Export key to a file

kiichaind keys export wallet

Import key from a file

kiichaind keys import wallet wallet.backup

Query wallet balance

kiichaind q bank balances $(kiichaind keys show wallet -a)

👷 Validator management

Please make sure you have adjusted moniker, identity, details and website to match your values.

Create Validator

cd $HOME
# Create validator.json file
echo "{\"pubkey\":{\"@type\":\"/cosmos.crypto.ed25519.PubKey\",\"key\":\"$(kiichaind comet show-validator | grep -Po '\"key\":\s*\"\K[^"]*')\"},
    \"amount\": \"1000000000000000000akii\",
    \"moniker\": \"mynode\",
    \"identity\": \"\",
    \"website\": \"\",
    \"security\": \"\",
    \"details\": \"I love Kiichain\",
    \"commission-rate\": \"0.05\",
    \"commission-max-rate\": \"0.2\",
    \"commission-max-change-rate\": \"0.05\",
    \"min-self-delegation\": \"1\"
}" > $HOME/.kiichain/validator.json
 
# Create a validator using the JSON configuration
kiichaind tx staking create-validator $HOME/.kiichain/validator.json \
    --from wallet \
    --chain-id oro_1336-1 \
    --gas-prices=1000000000akii \
    --gas-adjustment=1.5 \
    --gas=auto

Edit existing validator

kiichaind tx staking edit-validator \
--new-moniker="StoneGaze" \
--identity=xxxx \
--details="xxxx" \
--chain-id=oro_1336-1 \
--commission-rate=0.1 \
--from=wallet \
--fees 20000000000000000akii \
--gas-adjustment=1.5 \
--gas=auto \
-y

Unjail validator

kiichaind tx slashing unjail --from wallet --chain-id oro_1336-1 --gas auto --gas-adjustment 1.3 --gas-prices=1000000000akii

Jail reason

kiichaind query slashing signing-info $(kiichaind comet show-validator)

List all active validators

kiichaind 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

List all inactive validators

kiichaind 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

View validator details

kiichaind q staking validator $(kiichaind keys show wallet --bech val -a)

💲 Token management

Withdraw rewards from all validators

kiichaind tx distribution withdraw-all-rewards --from wallet --chain-id kiichain3 --gas-adjustment 1.4 --gas auto --gas-prices 0.025ukii -y

Withdraw commission and rewards from your validator

kiichaind tx distribution withdraw-rewards $(kiichaind keys show wallet --bech val -a) --commission --from wallet --chain-id kiichain3 --gas-adjustment 1.4 --gas auto --gas-prices 0.025ukii -y

Delegate tokens to yourself

kiichaind tx staking delegate $(kiichaind keys show wallet --bech val -a) 1000000ukii --from wallet --chain-id kiichain3 --gas-adjustment 1.4 --gas auto --gas-prices 0.025ukii -y

Delegate tokens to validator

kiichaind tx staking delegate <TO_VALOPER_ADDRESS> 1000000ukii --from wallet --chain-id kiichain3 --gas-adjustment 1.4 --gas auto --gas-prices 0.025ukii -y

Redelegate tokens to another validator

kiichaind tx staking redelegate $(kiichaind keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 1000000ukii --from wallet --chain-id kiichain3 --gas-adjustment 1.4 --gas auto --gas-prices 0.025ukii -y

Unbond tokens from your validator

kiichaind tx staking unbond $(kiichaind keys show wallet --bech val -a) 1000000ukii --from wallet --chain-id kiichain3 --gas-adjustment 1.4 --gas auto --gas-prices 0.025ukii -y

Send tokens to the wallet

kiichaind tx bank send wallet <TO_WALLET_ADDRESS> 1000000ukiie --from wallet --chain-id kiichain3 --gas-adjustment 1.4 --gas auto --gas-prices 0.02ukii -y

🗳 Governance

List all proposals

kiichaind query gov proposals

View proposal by id

kiichaind query gov proposal 1

Vote ‘Yes’

kiichaind tx gov vote 1 yes --from wallet --chain-id kiichain3 --gas-adjustment 1.4 --gas auto --gas-prices 0.025ukii -y

Vote ‘No’

kiichaind tx gov vote 1 no --from wallet --chain-id kiichain3 --gas-adjustment 1.4 --gas auto --gas-prices 0.025ukii -y

Vote ‘Abstain’

kiichaind tx gov vote 1 abstain --from wallet --chain-id kiichain3 --gas-adjustment 1.4 --gas auto --gas-prices 0.025ukii -y

Vote ‘NoWithVeto’

kiichaind tx gov vote 1 NoWithVeto --from wallet --chain-id kiichain3 --gas-adjustment 1.4 --gas auto --gas-prices 0.025ukii -y

⚙️ Service Management

Reload service configuration

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 -fo cat