Command
Wallet:
Add New Wallet:
swisstronikd keys add wallet
Restore executing wallet:
swisstronikd keys add wallet --recover
List All Wallets:
swisstronikd keys list
Delete wallet:
swisstronikd keys delete wallet
Check Balance:
swisstronikd q bank balances $(swisstronikd keys show wallet -a)
Validator:
Create Validator:
swisstronikd tx staking create-validator \
--amount 1000000000000uswtr \
--from wallet \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $(swisstronikd tendermint show-validator) \
--moniker "Node39 Guide \
--identity "xxxxxxxxxxxx" \
--details "xxxxxxxxxxxx" \
--website "xxxxxxxxxxxx" \
--security-contact "xxxxxxxxxxxx" \
--details "POS Node&Validator 🚀" \
--chain-id swisstronik_1291-1 \
--keyring-backend file \
--gas auto \
--gas-adjustment 1.5 \
--gas-prices 800000aswtr \
-y
Check sync | False -> done.
swisstronikd status 2>&1 | jq .SyncInfo.catching_up
Delegate Token to your own validator:
swisstronikd tx staking delegate $(swisstronikd keys show wallet --bech val -a) 1000000000000000000aswtr \
--from wallet \
--chain-id swisstronik_1291-1 \
--keyring-backend file \
--gas auto \
--gas-adjustment 1.5 \
--gas-prices 800000aswtr \
--node=https://swisstronik-testnet-rpc.node39.top:443 \
-y
Redelegate to other validator:
swisstronikd tx staking redelegate $(swisstronikd keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 1000000000000000000aswtr \
--from wallet \
--chain-id swisstronik_1291-1 \
--keyring-backend file \
--gas auto \
--gas-adjustment 1.5
--gas-prices 800000aswtr \
--node=https://swisstronik-testnet-rpc.node39.top:443 \
-y
Withdraw rewards:
swisstronikd tx distribution withdraw-all-rewards \
--from wallet \
--chain-id swisstronik_1291-1 \
--keyring-backend file \
--gas auto \
--gas-adjustment 1.5 \
--gas-prices 800000aswtr \
--node=https://swisstronik-testnet-rpc.node39.top:443 \
-y
Withdraw rewards and commission:
swisstronikd tx distribution withdraw-rewards $(swisstronikd keys show wallet --bech val -a) \
--from wallet \
--commission \
--chain-id swisstronik_1291-1 \
--keyring-backend file \
--gas auto \
--gas-adjustment 1.5 \
--gas-prices 800000aswtr \
--node=https://swisstronik-testnet-rpc.node39.top:443 \
-y
Unjail:
swisstronikd tx slashing unjail \
--from wallet \
-chain-id swisstronik_1291-1 \
--keyring-backend file \
--gas auto \
--gas-adjustment 1.5 \
--gas-prices 800000aswtr \
--node=https://swisstronik-testnet-rpc.node39.top:443
-y
Unbond:
swisstronikd tx staking unbond $(swisstronikd keys show $WALLET --bech val -a) 1000000000000000000aswtr \
--from wallet \
--chain-id swisstronik_1291-1 \
--keyring-backend file \
--gas-adjustment 1.5 \
--gas auto \
--gas-prices 800000aswtr \
--node=https://swisstronik-testnet-rpc.node39.top:443 \
-y
Vote:
yes/no/no_with_veto/abstain
swisstronikd tx gov vote 1 yes \
--from wallet \
--chain-id swisstronik_1291-1 \
--gas-adjustment 1.5 \
--gas auto \
--fees 800000aswtr \
--node=https://swisstronik-testnet-rpc.node39.top:443 \
-y
System:
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 -fo cat