Mainnet
KiiChain
- Chain ID
- Version
- Go
Run these after the install guide, which sets $WALLET, $MONIKER and the chain variables.
Keys and wallet
Add a new key
kiichaind keys add $WALLETRecover a key
kiichaind keys add $WALLET --recoverList keys
kiichaind keys listWallet balance
kiichaind q bank balances $(kiichaind keys show $WALLET -a)
Validator
Create a validator
cat > $HOME/validator.json << EOF { "pubkey": $(kiichaind comet show-validator), "amount": "1000000000000000000akii", "moniker": "$MONIKER", "identity": "", "website": "", "security": "", "details": "", "commission-rate": "0.05", "commission-max-rate": "0.20", "commission-max-change-rate": "0.05", "min-self-delegation": "1" } EOF kiichaind tx staking create-validator $HOME/validator.json --from $WALLET --chain-id $KII_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 1000000000akii -yEdit the validator
kiichaind tx staking edit-validator --new-moniker "$MONIKER" --identity "" --website "" --details "" --from $WALLET --chain-id $KII_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 1000000000akii -yUnjail
kiichaind tx slashing unjail --from $WALLET --chain-id $KII_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 1000000000akii -yValidator details
kiichaind q staking validator $(kiichaind keys show $WALLET --bech val -a)
Tokens
Withdraw all rewards
kiichaind tx distribution withdraw-all-rewards --from $WALLET --chain-id $KII_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 1000000000akii -yWithdraw commission and rewards
kiichaind tx distribution withdraw-rewards $(kiichaind keys show $WALLET --bech val -a) --commission --from $WALLET --chain-id $KII_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 1000000000akii -yDelegate to yourself
kiichaind tx staking delegate $(kiichaind keys show $WALLET --bech val -a) 1000000000000000000akii --from $WALLET --chain-id $KII_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 1000000000akii -yRedelegate
kiichaind tx staking redelegate $(kiichaind keys show $WALLET --bech val -a) <TO_VALOPER> 1000000000000000000akii --from $WALLET --chain-id $KII_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 1000000000akii -yUnbond
kiichaind tx staking unbond $(kiichaind keys show $WALLET --bech val -a) 1000000000000000000akii --from $WALLET --chain-id $KII_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 1000000000akii -ySend tokens
kiichaind tx bank send $WALLET <TO_ADDRESS> 1000000000000000000akii --chain-id $KII_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 1000000000akii -y
Governance
List proposals
kiichaind q gov proposalsView a proposal
kiichaind q gov proposal <ID>Vote
kiichaind tx gov vote <ID> yes --from $WALLET --chain-id $KII_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 1000000000akii -y # yes | no | abstain | no_with_veto
Maintenance
Node status
kiichaind status 2>&1 | jqNode peer address
echo $(kiichaind comet show-node-id)@$(wget -qO- eth0.me):$KII_PORT656Live peers
curl -s localhost:$KII_PORT657/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr | split(":") | last)"' | paste -sd,Check the validator key
[[ $(kiichaind q staking validator $(kiichaind keys show $WALLET --bech val -a) -o json | jq -r .validator.consensus_pubkey.value) = $(kiichaind comet show-validator | jq -r .key) ]] && echo "match" || echo "MISMATCH"Reset chain data
kiichaind comet unsafe-reset-all --keep-addr-book --home $HOME/.kiichainRemove the node
sudo systemctl stop kiichaind sudo systemctl disable kiichaind sudo rm /etc/systemd/system/kiichaind.service sudo systemctl daemon-reload rm -rf $HOME/.kiichain $(which kiichaind)
Service
Service status
sudo systemctl status kiichaindFollow logs
sudo journalctl -fu kiichaind -o catRestart
sudo systemctl restart kiichaindStop
sudo systemctl stop kiichaind