Management
#Generate
selfchaind keys add wallet
#Recover
selfchaind keys add wallet --recover
#Delete
selfchaind keys delete wallet
#Export private key
selfchaind keys export wallet
#Import with <keyfile>
selfchaind keys import wallet <keyfile>
#Check balance
selfchaind q bank balances $(selfchaind keys show wallet -a)
#Show all wallet
selfchaind keys list
#Create validator
selfchaind tx staking create-validator \
--amount 1000000uself \
--pubkey $(selfchaind tendermint show-validator) \
--moniker "your-moniker-name" \
--identity "your-keybase-id" \
--details "your-details" \
--website "your-website" \
--security-contact "your-email" \
--chain-id self-dev-1 \
--commission-rate 0.05 \
--commission-max-rate 0.20 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--from wallet \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.005uself \
-y
#edit validator
selfchaind tx staking edit-validator \
--new-moniker "your-moniker-name" \
--identity "your-keybase-id" \
--details "your-details" \
--website "your-website" \
--security-contact "your-email" \
--chain-id self-dev-1 \
--commission-rate 0.05 \
--from wallet \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.005uself \
-y
#Unjail
selfchaind tx slashing unjail --from wallet --chain-id self-dev-1 --gas-adjustment 1.4 --gas auto --gas-prices 0.005uself -y
#List active validator
selfchaind 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 inactive validator
selfchaind 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
#Validator details
selfchaind q staking validator $(selfchaind keys show wallet --bech val -a)
#Send
selfchaind tx bank send wallet <to-wallet-address> 1000000uself \
--from wallet \
--chain-id self-dev-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.0001uself \
-y
#Delegate
selfchaind tx staking delegate $(selfchaind keys show wallet --bech val -a) 1000000uself \
--from wallet \
--chain-id self-dev-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.0001uself \
-y
#Redelegate
selfchaind tx staking redelegate $(selfchaind keys show wallet --bech val -a) <to-valoper-address> 1000000uself \
--from wallet \
--chain-id self-dev-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.0001uself \
-y
#Unbond
selfchaind tx staking unbond $(selfchaind keys show wallet --bech val -a) 1000000uself \
--from wallet \
--chain-id self-dev-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.0001uself \
-y
#Withdraw reward and commission
selfchaind tx distribution withdraw-rewards $(selfchaind keys show wallet --bech val -a) \
--commission \
--from wallet \
--chain-id self-dev-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.0001uself \
-y
#Withdraw reward from all validator
selfchaind tx distribution withdraw-all-rewards \
--from wallet \
--chain-id self-dev-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.0001uself \
-y
#List proposal
selfchaind d query gov proposals
#View proposal by ID
selfchaind d query gov proposal 1
#Vote yes
selfchaind d tx gov vote 1 yes \
--chain-id self-dev-1 \
--from "wallet" \
--gas "200000" \
--fees 1000uself \
-y
#Vote no
selfchaind d tx gov vote 1 no \
--chain-id self-dev-1 \
--from "wallet" \
--gas "200000" \
--fees 1000uself \
-y
#Vote abstain
selfchaind d tx gov vote 1 abstain \
--chain-id self-dev-1 \
--from "wallet" \
--gas "200000" \
--fees 1000uself \
-y
#Vote NoWithVeto
selfchaind d tx gov vote 1 NoWithVeto \
--chain-id self-dev-1 \
--from "wallet" \
--gas "200000" \
--fees 1000uself \
-y
Last updated