🖊️Working with your wallet
Copy starsd keys add wallet
Copy starsd keys add wallet --recover
Copy starsd q bank balances $(starsd keys show wallet -a)
Copy starsd keys delete wallet
Copy starsd keys export wallet
Copy starsd keys import wallet wallet.backup
🔧Service
Copy starsd status 2>&1 | jq .NodeInfo
starsd status 2>&1 | jq .SyncInfo
starsd status 2>&1 | jq .ValidatorInfo
Copy sudo journalctl -fu starsd -o cat
Copy sudo systemctl status starsd
Copy sudo systemctl restart starsd
Copy sudo systemctl stop starsd
Copy sudo systemctl start starsd
Copy sudo systemctl daemon-reload
sudo systemctl disable starsd
sudo systemctl enable starsd
Copy 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🔗
Copy 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 \
-y
Copy 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 -y
Copy starsd query slashing signing-info $(starsd tendermint show-validator)
Copy starsd tx slashing unjail --from Wallet_name --chain-id stargaze-1 --gas 350000 --fees "7000"ustars -y
Copy 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 | nl
Copy 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 | nl
Copy starsd q staking validator $(starsd keys show wallet --bech val -a)
🔈Governance
Copy starsd query gov proposals
Copy starsd query gov proposal 1
Copy starsd tx gov vote 1 yes --from Wallet_Name --gas 350000 --fees "7000"ustars --chain-id=stargaze-1 -y
Copy starsd tx gov vote 1 no --from Wallet_Name --gas 350000 --fees "7000"ustars --chain-id=stargaze-1 -y
Copy starsd tx gov vote 1 abstain --from Wallet_Name --gas 350000 --fees "7000"ustars --chain-id=stargaze-1 -y
Vote no_with_veto
Copy starsd tx gov vote 1 no_with_veto --from Wallet_Name --gas 350000 --fees "7000"ustars --chain-id=stargaze-1 -y
⚙️Token management
Withdraw all rewards from all validators:
Copy starsd tx distribution withdraw-all-rewards --from Wallet_Name --chain-id stargaze-1 --gas 350000 --fees "7000"ustars -y
Withdraw rewards and commission from your Validator:
Copy starsd tx distribution withdraw-rewards valoper1amxp0k0hg4edrxg85v07t9ka2tfuhamhldgf8e --from Wallet_Name --gas 350000 --fees "7000"ustars --chain-id stargaze-1 --commission -y
Delegate tokens to your validator
Copy starsd tx staking delegate Your_valoper_address "100000000"ustars --from Wallet_Name --gas 350000 --fees "7000"ustars --chain-id stargaze-1 -y
Delegate tokens to different validator
Copy starsd tx staking delegate valoper_address "100000000"ustars --from Wallet_Name --gas 350000 --fees "7000"ustars --chain-id stargaze-1 -y
Redelegate tokens to another validator
Copy starsd tx staking redelegate Your_valoper_address valoper_address "100000000"ustars --from Wallet_Name --gas 350000 --fees "7000"ustars --chain-id stargaze-1 -y
Unbond tokens from your validator
Copy starsd tx staking unbond Your_valoper_address "100000000"ustars --from Wallet_Name --gas 350000 --fees "7000"ustars --chain-id stargaze-1 -y
Send tokens to the wallet
Copy starsd tx bank send Your_wallet_address recipient_wallet_address "1000000000000000000"ustars --gas 350000 --fees "7000"ustars --chain-id stargaze-1 -y
Notes:
Replace Wallet_Name
with the name of your wallet.
Replace Your_valoper_address
and valoper_address
with the respective validator addresses.
Replace Your_wallet_address
and recipient_wallet_address
with the respective wallet addresses.
Ensure you have sufficient ustars
tokens to cover the fees and the amounts you intend to send.
The --gas
parameter specifies the maximum gas units to use for the transaction. Adjust this value if necessary.
The --fees
parameter specifies the fee amount in ustars
. Ensure you have enough tokens to cover the fees.
The -y
flag 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.