Command
Check logs
sudo journalctl -u kopid -f
API
sudo systemctl status kopid -f
Node info
kopid status 2>&1 | jq -f
Start service
sudo systemctl start kopid
Reload services
sudo systemctl daemon-reload
Stop service
sudo systemctl stop kopid
Enable Service
sudo systemctl enable kopid
Restart service
sudo systemctl restart kopid
Disable Service
sudo systemctl disable kopid
Your node peer
echo $(kopid tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.kopid/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
Key Management
Add New Wallet
kopid keys add $WALLET
Restore wallet
kopid keys add $WALLET --recover
List All Wallets
kopid keys list
Delete wallet
kopid keys delete $WALLET
Check Balance
kopid q bank balances $WALLET_ADDRESS
Export Key (save to wallet.backup)
kopid keys export $WALLET
View EVM Prived Key
kopid keys unsafe-export-eth-key $WALLET
Import Key (restore from wallet.backup)
kopid keys import $WALLET wallet.backup
Token Management
Withdraw rewards and commission from your validator
kopid tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --commission --chain-id luwak-1 --gas auto --gas-adjustment 1.5 -y
Check your balance
kopid query bank balances WALLET_ADDRESS
Delegate to Yourself
kopid tx staking delegate $(kopid keys show $WALLET --bech val -a) 1000000ukopi --from $WALLET --chain-id luwak-1 --gas auto --gas-adjustment 1.5 -y
Delegate
kopid tx staking delegate ukopi --from --chain-id luwak-1 --gas auto --gas-adjustment 1.5 -y
Redelegate Stake to Another Validator
kopid tx staking redelegate ukopi --from --chain-id luwak-1 --gas auto --gas-adjustment 1.5 -y
Unbond Your Stake
kopid tx staking unbond $(kopid keys show --bech val -a) ukopi --from --chain-id luwak-1 --gas auto --gas-adjustment 1.5 --fees 600ukopi -y
Transfer Funds to Another Wallet
kopid tx bank send <TO_WALLET_ADDRESS> ukopi --gas auto --gas-adjustment 1.5 -y
Validator Management
Create New Validator
kopid tx staking create-validator \
--amount 1000000kopid \
--from $WALLET \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $($kopid tendermint show-validator) \
--moniker "$MONIKER" \
--identity "$MyIdentity" \
--details " Let's aim for a bright future 🔮" \
--chain-id luwak-1 \
--gas auto --gas-adjustment 1.5 \
-y
Edit Validator
kopid tx staking create-validator \
--kopid tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details " Let's aim for a bright future 🔮" \
--from $WALLET \
--chain-id luwak-1 \
--gas auto --gas-adjustment 1.5 \
-y
Validator info
kopid status 2>&1 | jq
Validator Details
kopid q staking validator $(kopid keys show $WALLET --bech val -a)
Jailing info
kopid q slashing signing-info $(kopid tendermint show-validator)
Slashing parameters
kopid q slashing params
Unjail validator
kopid tx slashing unjail --from $WALLET --chain-id luwak-1 --gas auto --gas-adjustment 1.5 -y
Active Validators List
kopid q staking validators -oj --limit=2000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " " + .description.moniker' | sort -gr | nl
Check Validator key
[[ $(kopid q staking validator $VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = $(kopid status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"
Signing info
kopid q slashing signing-info $(kopid tendermint show-validator)
Government
kopid tx gov vote 25 yes --from Chicharito --chain-id luwak-1 --gas-adjustment 1.4 --gas auto --gas-prices 0ukopi -y
Last updated
Was this helpful?