Useful commands

# Set Vars
MONIKER=<YOUR_MONIKER_NAME_GOES_HERE>
echo "export MONIKER=$MONIKER" >> $HOME/.bash_profile
echo "export SYMPHONY_CHAIN_ID="symphony-testnet-4"" >> $HOME/.bash_profile
source $HOME/.bash_profile

WALLET MANAGEMENT

Add Wallet Specify the value <wallet> with your own wallet name

#Add new wallet
symphonyd keys add wallet

#Recover Wallet
symphonyd keys add wallet --recover

#List Wallet
symphonyd keys list

#Delete Wallet
symphonyd keys delete wallet

#Check Wallet Balance
symphonyd q bank balances $(symphonyd keys show wallet -a)

VALIDATOR MANAGEMENT

Please adjust , MONIKER , YOUR_KEYBASE_ID , YOUR_DETAILS , YOUR_WEBSITE_URL

#Create Validator
symphonyd tx staking create-validator \
--amount=1000000note \
--pubkey=$(symphonyd tendermint show-validator) \
--moniker=$MONIKER \
--identity="YOUR_KEYBASE_ID" \
--details="YOUR_DETAILS" \
--website="YOUR_WEBSITE_URL" \
--chain-id=$SYMPHONY_CHAIN_ID \
--commission-rate=0.10 \
--commission-max-rate=0.20 \
--commission-max-change-rate=0.01 \
--min-self-delegation=1000 \
--from=wallet \
--gas-adjustment=1.5 \
--gas="auto" \
--gas-prices=1note


#Edit Validator
symphonyd tx staking edit-validator \
--new-moniker="YOUR MONIKER" \
--identity="IDENTITY KEYBASE" \
--details="DETAILS VALIDATOR" \
--website="LINK WEBSITE" \
--chain-id=$SYMPHONY_CHAIN_ID \
--from=wallet \
--gas-adjustment=1.5 \
--gas="auto" \
--gas-prices=1note


#Unjail Validator
symphonyd tx slashing unjail --from wallet --chain-id $SYMPHONY_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1note 

#Check Jailed Reason
symphonyd query slashing signing-info $(symphonyd tendermint show-validator)

TOKEN MANAGEMENT

#Withdraw Rewards
symphonyd tx distribution withdraw-all-rewards --from wallet --chain-id $SYMPHONY_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1note 

#Withdraw Rewards with Comission
symphonyd tx distribution withdraw-rewards $(symphonyd keys show wallet --bech val -a) --commission --from wallet --chain-id $SYMPHONY_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1note 

#Delegate Token to your own validator
symphonyd tx staking delegate $(symphonyd keys show wallet --bech val -a) 100000note --from wallet --chain-id $SYMPHONY_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1note 

#Delegate Token to other validator
symphonyd tx staking redelegate $(symphonyd keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 100000note --from wallet --chain-id $SYMPHONY_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1note 

#Unbond Token from your validator
symphonyd tx staking unbond $(symphonyd keys show wallet --bech val -a) 100000note --from wallet --chain-id $SYMPHONY_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1note 

#Send Token to another wallet
symphonyd tx bank send wallet <TO_WALLET_ADDRESS> 100000note --from wallet --chain-id $SYMPHONY_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1note 

GOVERNANCE

#Vote, You can change the value of yes to no,abstain,nowithveto
symphonyd tx gov vote 1 yes --from wallet --chain-id $SYMPHONY_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1note 

#List all proposals
symphonyd query gov proposals

#Create new text proposal
symphonyd tx gov submit-proposal \
--title="Title" \
--description="Description" \
--deposit=10000000note \
--type="Text" \
--from=wallet \
--gas-adjustment 1.5 \
--gas "auto" \
--gas-prices=1note

SERVICES MANAGEMENT

# Reload Service
sudo systemctl daemon-reload

# Enable Service
sudo systemctl enable symphonyd

# Disable Service
sudo systemctl disable symphonyd

# Start Service
sudo systemctl start symphonyd

# Stop Service
sudo systemctl stop symphonyd

# Restart Service
sudo systemctl restart symphonyd

# Check Service Status
sudo systemctl status symphonyd

# Check Service Logs
sudo journalctl -u symphonyd -f --no-hostname -o cat

UTILITY

#Set Indexer NULL / KV
sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.symphonyd/config/config.toml

#Get Validator info
symphonyd status 2>&1 | jq .ValidatorInfo

#Get denom info
symphonyd q bank denom-metadata -oj | jq

#Get sync status
symphonyd status 2>&1 | jq .SyncInfo.catching_up

#Get latest height
symphonyd status 2>&1 | jq .SyncInfo.latest_block_height

#Reset Node
symphonyd tendermint unsafe-reset-all --home $HOME/.symphonyd --keep-addr-book

DELETE NODE

sudo systemctl stop symphonyd && sudo systemctl disable symphonyd && sudo rm /etc/systemd/system/symphonyd.service && sudo systemctl daemon-reload && sudo rm -rf $(which symphonyd) && rm -rf $HOME/.symphonyd

Last updated