🖥️Useful commands
🖊️Working with your wallet
Add New Key
starsd keys add walletRecover Existing Key
starsd keys add wallet --recoverQuery Wallet Balance
starsd q bank balances $(starsd keys show wallet -a)List All Keys
starsd keys listDelete Key
starsd keys delete walletExport Key to a File
starsd keys export walletImport Key from a File
starsd keys import wallet wallet.backup🔧Service
Info
starsd status 2>&1 | jq .NodeInfo
starsd status 2>&1 | jq .SyncInfo
starsd status 2>&1 | jq .ValidatorInfoCheck Node Logs
sudo journalctl -fu starsd -o catCheck Service Status
sudo systemctl status starsdRestart Service
sudo systemctl restart starsdStop Service
sudo systemctl stop starsdStart Service
sudo systemctl start starsdReload, Disable, Enable
sudo systemctl daemon-reload
sudo systemctl disable starsd
sudo systemctl enable starsdYour Peer
echo $(starsd tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.starsd/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')🔗Validator Management🔗
Create New Validator
starsd tx staking create-validator \
--amount 1000000ustars \
--from <walletName> \
--commission-max-change-rate "0.01" \
--commission-max-rate "0.20" \
--commission-rate "0.05" \
--min-self-delegation "1" \
--pubkey $(starsd tendermint show-validator) \
--moniker <YOUR_MONIKER_NAME> \
--chain-id stargaze-1 \
--identity="<YOUR_KEYBASE_ID>" \
--details="<YOUR_DETAILS>" \
--website="<YOUR_WEBSITE_URL>" \
--fees 200000ustars \
--gas-adjustment 1.5 \
-yEdit Validator
starsd tx staking edit-validator \
--new-moniker "YOUR_MONIKER_NAME" \
--identity "YOUR_KEYBASE_ID" \
--details "YOUR_DETAILS" \
--website "YOUR_WEBSITE_URL" \
--security-contact "Your_Email" \
--chain-id stargaze-1 \
--commission-rate 0.05 \
--from <walletName> \
--gas 350000 -yJail Info
starsd query slashing signing-info $(starsd tendermint show-validator)Unjail
starsd tx slashing unjail --from Wallet_name --chain-id stargaze-1 --gas 350000 --fees "7000"ustars -yActive Validators List
starsd 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 | nlInactive Validators List
starsd 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 | nlView Validator Details
starsd q staking validator $(starsd keys show wallet --bech val -a)🔈Governance
List All Proposals
starsd query gov proposalsView Specific Proposal
starsd query gov proposal 1Vote Yes
starsd tx gov vote 1 yes --from Wallet_Name --gas 350000 --fees "350000"ustars --chain-id=stargaze-1 -yVote Тo
starsd tx gov vote 1 no --from Wallet_Name --gas 350000 --fees "350000"ustars --chain-id=stargaze-1 -yVote Abstain
starsd tx gov vote 1 abstain --from Wallet_Name --gas 350000 --fees "350000"ustars --chain-id=stargaze-1 -yVote no_with_veto
starsd tx gov vote 1 no_with_veto --from Wallet_Name --gas 350000 --fees "350000"ustars --chain-id=stargaze-1 -y⚙️Token management
Withdraw all rewards from all validators:
starsd tx distribution withdraw-all-rewards --from Wallet_Name --chain-id stargaze-1 --gas 350000 --fees "7000"ustars -yWithdraw rewards and commission from your Validator:
starsd tx distribution withdraw-rewards valoper1amxp0k0hg4edrxg85v07t9ka2tfuhamhldgf8e --from Wallet_Name --gas 350000 --fees "7000"ustars --chain-id stargaze-1 --commission -yDelegate tokens to your validator
starsd tx staking delegate Your_valoper_address "100000000"ustars --from Wallet_Name --gas 350000 --fees "7000"ustars --chain-id stargaze-1 -yDelegate tokens to different validator
starsd tx staking delegate valoper_address "100000000"ustars --from Wallet_Name --gas 350000 --fees "7000"ustars --chain-id stargaze-1 -yRedelegate tokens to another validator
starsd tx staking redelegate Your_valoper_address valoper_address "100000000"ustars --from Wallet_Name --gas 350000 --fees "7000"ustars --chain-id stargaze-1 -yUnbond tokens from your validator
starsd tx staking unbond Your_valoper_address "100000000"ustars --from Wallet_Name --gas 350000 --fees "7000"ustars --chain-id stargaze-1 -ySend tokens to the wallet
starsd tx bank send Your_wallet_address recipient_wallet_address "1000000000000000000"ustars --gas 350000 --fees "7000"ustars --chain-id stargaze-1 -yNotes:
Replace
Wallet_Namewith the name of your wallet.Replace
Your_valoper_addressandvaloper_addresswith the respective validator addresses.Replace
Your_wallet_addressandrecipient_wallet_addresswith the respective wallet addresses.Ensure you have sufficient
ustarstokens to cover the fees and the amounts you intend to send.The
--gasparameter specifies the maximum gas units to use for the transaction. Adjust this value if necessary.The
--feesparameter specifies the fee amount inustars. Ensure you have enough tokens to cover the fees.The
-yflag automatically confirms the transaction without prompting for confirmation.
For more detailed information, refer to the Stargaze documentation.
Please exercise caution when performing transactions and ensure you have backed up your wallet information securely.
Last updated