Key Management
Add new key
swisstronikd keys add wallet
Recover existing key
swisstronikd keys add wallet --recover
List All key
swisstronikd keys list
Delete key
swisstronikd keys delete wallet
Export Key (save to wallet.backup)
swisstronikd keys export wallet
Import key
swisstronikd keys import wallet wallet.backup
Query 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 \
-y
Edit 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 \
-y
Unjail 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 proposals
Proposal 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.toml
Get Validator info
swisstronikd status 2>&1 | jq .ValidatorInfo
Get denom info
swisstronikd q bank denom-metadata -oj | jq
Get sync status
swisstronikd status 2>&1 | jq .SyncInfo.catching_up
Get latest height
swisstronikd status 2>&1 | jq .SyncInfo.latest_block_height
Reset Node
swisstronikd tendermint unsafe-reset-all --home $HOME/.swisstronik --keep-addr-book
Delete 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-reload
Enable Service
sudo systemctl enable swisstronikd
Disable Service
sudo systemctl disable swisstronikd
Start Service
sudo systemctl start swisstronikd
Stop Service
sudo systemctl stop swisstronikd
Restart Service
sudo systemctl restart swisstronikd
Check Service Status
sudo systemctl status swisstronikd
Check Service Logs
sudo journalctl -u swisstronikd -f --no-hostname -o cat
Last updated