Useful commands

# Set Vars
MONIKER=<YOUR_MONIKER_NAME_GOES_HERE>
echo "export MONIKER=$MONIKER" >> $HOME/.bash_profile
echo "export QUICKSILVER_CHAIN_ID="quicksilver-2"" >> $HOME/.bash_profile
source $HOME/.bash_profile

WALLET MANAGEMENT

Add Wallet Specify the value <wallet> with your own wallet name

#Create Wallet
quicksilverd keys add wallet

#Recover Wallet
quicksilverd keys add wallet --recover

#List Wallet
quicksilverd keys list

#Delete Wallet
quicksilverd keys delete wallet

#Check Wallet Balance
quicksilverd q bank balances $(quicksilverd keys show wallet -a)

VALIDATOR MANAGEMENT

Please adjust , MONIKER , YOUR_KEYBASE_ID , YOUR_DETAILS , YOUR_WEBSITE_URL

#Create Validator (Staking)
quicksilverd tx staking create-validator \
--amount=10000000uqck \
--pubkey=$(quicksilverd tendermint show-validator) \
--moniker=$MONIKER \
--identity="YOUR_KEYBASE_ID" \
--details="YOUR_DETAILS" \
--website="YOUR_WEBSITE_URL" \
--chain-id=$QUICKSILVER_CHAIN_ID \
--commission-rate=0.10 \
--commission-max-rate=0.20 \
--commission-max-change-rate=0.01 \
--min-self-delegation=10000 \
--from=wallet \
--gas-adjustment 1.5 \
--gas="auto" \
--gas-prices=1uqck \
-y

#Edit Validator
quicksilverd tx staking edit-validator \
--new-moniker="YOUR MONIKER" \
--identity="IDENTITY KEYBASE" \
--details="DETAILS VALIDATOR" \
--website="LINK WEBSITE" \
--chain-id=$QUICKSILVER_CHAIN_ID \
--from=wallet \
--gas-adjustment=1.5 \
--gas="auto" \
--gas-prices=1uqck \
-y

#Unjail Validator
quicksilverd tx slashing unjail --from wallet --chain-id $QUICKSILVER_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1uqck  -y

#Check Jailed Reason
quicksilverd query slashing signing-info $(quicksilverd tendermint show-validator)

TOKEN MANAGEMENT

#Withdraw Rewards
quicksilverd tx distribution withdraw-all-rewards --from wallet --chain-id $QUICKSILVER_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1uqck -y

#Withdraw Rewards with Comission
quicksilverd tx distribution withdraw-rewards $(quicksilverd keys show wallet --bech val -a) --commission --from wallet --chain-id $QUICKSILVER_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1uqck -y

#Delegate Token to your own validator
quicksilverd tx staking delegate $(quicksilverd keys show wallet --bech val -a) 1000000uqck --from wallet --chain-id $QUICKSILVER_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1uqck -y

#Delegate Token to other validator
quicksilverd tx staking redelegate $(quicksilverd keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 1000000uqck --from wallet --chain-id $QUICKSILVER_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1uqck -y

#Unbond Token from your validator
quicksilverd tx staking unbond $(quicksilverd keys show wallet --bech val -a) 1000000uqck --from wallet --chain-id $QUICKSILVER_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1uqck -y

#Send Token to another wallet
quicksilverd tx bank send wallet <TO_WALLET_ADDRESS> 1000000uqck --from wallet --chain-id $QUICKSILVER_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1uqck -y

GOVERNANCE

#Vote, You can change the value of yes to no,abstain,nowithveto
quicksilverd tx gov vote 1 yes --from wallet --chain-id $QUICKSILVER_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1uqck -y

#List all proposals
quicksilverd query gov proposals

#Create new text proposal
quicksilverd tx gov submit-proposal \
--title="Title" \
--description="Description" \
--deposit=100000000uqck \
--type="Text" \
--from=wallet \
--gas-prices=1uqck \ 
--gas-adjustment=1.5 \
--gas="auto" \
-y 

SERVICES MANAGEMENT

# Reload Service
sudo systemctl daemon-reload

# Enable Service
sudo systemctl enable quicksilverd

# Disable Service
sudo systemctl disable quicksilverd

# Start Service
sudo systemctl start quicksilverd

# Stop Service
sudo systemctl stop quicksilverd

# Restart Service
sudo systemctl restart quicksilverd

# Check Service Status
sudo systemctl status quicksilverd

# Check Service Logs
sudo journalctl -u quicksilverd -f --no-hostname -o cat

UTILITY

#Set Indexer NULL / KV
sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.quicksilverd/config/config.toml

#Get Validator info
quicksilverd status 2>&1 | jq .ValidatorInfo

#Get denom info
quicksilverd q bank denom-metadata -oj | jq

#Get sync status
quicksilverd status 2>&1 | jq .SyncInfo.catching_up

#Get latest height
quicksilverd status 2>&1 | jq .SyncInfo.latest_block_height

#Reset Node
quicksilverd tendermint unsafe-reset-all --home $HOME/.quicksilverd --keep-addr-book

DELETE NODE

sudo systemctl stop quicksilverd && sudo systemctl disable quicksilverd && sudo rm /etc/systemd/system/quicksilverd.service && sudo systemctl daemon-reload && sudo rm -rf $(which quicksilverd) && rm -rf $HOME/.quicksilverd

Last updated