Useful Commands
Key Management
Add new key
swisstronikd keys add walletRecover existing key
swisstronikd keys add wallet --recoverList All key
swisstronikd keys listDelete key
swisstronikd keys delete walletExport Key (save to wallet.backup)
swisstronikd keys export walletImport key
swisstronikd keys import wallet wallet.backupQuery Wallet Balance
swisstronikd q bank balances $(swisstronikd keys show wallet -a)Validator Management
Create Validator
swisstronikd tx staking create-validator \
--amount "1000000uswrt" \
--pubkey $(swisstronikd tendermint show-validator) \
--moniker "<MONIKER>" \
--identity "" \
--website "YOUR WEBSITE" \
--chain-id swisstronik_1291-1 \
--commission-rate "0.01" \
--commission-max-rate "0.2" \
--commission-max-change-rate "0.01" \
--min-self-delegation "1" \
--gas-prices 7uswrt \
--gas "auto" \
--gas-adjustment "1.5" \
--from wallet \
-yEdit Validator
swisstronikd tx staking edit-validator \
--new-moniker "<MONIKER>" \
--identity "" \
--details "Indonode Guide" \
--website "YOUR WEBSITE" \
--chain-id swisstronik_1291-1 \
--commission-rate "0.01" \
--gas-prices 7uswrt \
--gas "auto" \
--gas-adjustment "1.5" \
--from wallet \
-yUnjail Validator
swisstronikd tx slashing unjail \
--chain-id swisstronik_1291-1 \
--gas-prices 7uswrt \
--gas-adjustment 1.5\
--gas "auto" \
--from wallet \
-y Signing Info
swisstronikd query slashing signing-info $(swisstronikd tendermint show-validator) List all active validators
swisstronikd q staking validators -oj --limit=3000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " " + .description.moniker' | sort -gr | nl List all inactive validators
swisstronikd q staking validators -oj --limit=3000 | jq '.validators[] | select(.status=="BOND_STATUS_UNBONDED") or .status=="BOND_STATUS_UNBONDING")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " " + .description.moniker' | sort -gr | nl View validators details
swisstronikd q staking validator $(swisstronikd keys show wallet --bech val -a) Token Management
To valoper addressTo wallet addressAmount, uswrt
Withdraw rewards from all validators
swisstronikd tx distribution withdraw-all-rewards --from wallet --chain-id swisstronik_1291-1 --gas-prices 7uswrt --gas-adjustment 1.5 --gas "auto" -y Withdraw comission and rewards from your validator
swisstronikd tx distribution withdraw-rewards $(swisstronikd keys show wallet --bech val -a) --commission --from wallet --chain-id swisstronik_1291-1 --gas-prices 7uswrt --gas-adjustment 1.5 --gas "auto" -y Delegate to your validator
swisstronikd tx staking delegate $(swisstronikd keys show wallet --bech val -a) 1000000uswrt --from wallet --chain-id swisstronik_1291-1 --gas-prices 7uswrt --gas-adjustment 1.5 --gas "auto" -y Delegate to other
c4ed tx staking delegate <TO_VALOPER_ADDRESS> 1000000uswrt --from wallet --chain-id swisstronik_1291-1 --gas-prices 7uswrt --gas-adjustment 1.5 --gas "auto" -y Redelegate your stake to other validators
swisstronikd tx staking redelegate $(swisstronikd keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 1000000uswrt --from wallet --chain-id swisstronik_1291-1 --gas-prices 7uswrt --gas-adjustment 1.5 --gas "auto" -y Unbond stake
swisstronikd tx staking unbond $(swisstronikd keys show wallet --bech val -a) 1000000uswrt --from wallet --chain-id swisstronik_1291-1 --gas-prices 7uswrt --gas-adjustment 1.5 --gas "auto" -y Send tokens
swisstronikd tx bank send wallet <TO_WALLET_ADDRESS> 1000000uswrt --from wallet --chain-id swisstronik_1291-1 --gas-prices 7uswrt --gas-adjustment 1.5 --gas "auto" -y Governance
Create new text proposal
swisstronikd tx gov submit-proposal \
--title "" \
--description "" \
--deposit "1000000uswrt" \
--type "Text" \
--from wallet \
--gas-prices 7uswrt \
--gas-adjustment 1.5 \
--gas "auto" \
-y List all proposals
swisstronikd query gov proposalsProposal IDProposal optionYesNoNo with vetoAbstain
Vote
swisstronikd tx gov vote 1 yes \
--from wallet \
--chain-id swisstronik_1291-1 \
--gas-prices 7uswrt \
--gas-adjustment 1.5 \
--gas "auto" \
-y Utility
Set IndexerNULLKV
sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.swisstronik/config/config.tomlGet Validator info
swisstronikd status 2>&1 | jq .ValidatorInfoGet denom info
swisstronikd q bank denom-metadata -oj | jqGet sync status
swisstronikd status 2>&1 | jq .SyncInfo.catching_upGet latest height
swisstronikd status 2>&1 | jq .SyncInfo.latest_block_heightReset Node
swisstronikd tendermint unsafe-reset-all --home $HOME/.swisstronik --keep-addr-bookDelete Node
cd $HOME && sudo systemctl stop swisstronikd && sudo systemctl disable swisstronikd && sudo rm /etc/systemd/system/swisstronikd.service && sudo systemctl daemon-reload && sudo rm -rf $(which swisstronikd) && sudo rm -rf $HOME/.swisstronik && sudo rm -rf $(which swisstronikd) Services Management
Reload Service
sudo systemctl daemon-reloadEnable Service
sudo systemctl enable swisstronikdDisable Service
sudo systemctl disable swisstronikdStart Service
sudo systemctl start swisstronikdStop Service
sudo systemctl stop swisstronikdRestart Service
sudo systemctl restart swisstronikdCheck Service Status
sudo systemctl status swisstronikdCheck Service Logs
sudo journalctl -u swisstronikd -f --no-hostname -o catLast updated