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