Useful commands

# Set Vars
MONIKER=<YOUR_MONIKER_NAME_GOES_HERE>
echo "export MONIKER=$MONIKER" >> $HOME/.bash_profile
echo "export SEDA_CHAIN_ID="seda-1"" >> $HOME/.bash_profile
source $HOME/.bash_profile

WALLET MANAGEMENT

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

#Create Wallet
sedad keys add wallet

#Recover Wallet
sedad keys add wallet --recover

#List Wallet
sedad keys list

#Delete Wallet
sedad keys delete wallet

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

VALIDATOR MANAGEMENT

Please adjust , MONIKER , YOUR_KEYBASE_ID , YOUR_DETAILS , YOUR_WEBSITE_URL

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

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

#Unjail Validator
sedad tx slashing unjail --from wallet --chain-id $SEDA_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1aseda -y

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

TOKEN MANAGEMENT

#Withdraw Rewards
sedad tx distribution withdraw-all-rewards --from wallet --chain-id $SEDA_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1aseda -y

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

#Delegate Token to your own validator
sedad tx staking delegate $(sedad keys show wallet --bech val -a) 100000000aseda --from wallet --chain-id $SEDA_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1aseda -y

#Delegate Token to other validator
sedad tx staking redelegate $(sedad keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 1000000uaum --from wallet --chain-id $SEDA_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1aseda -y

#Unbond Token from your validator
sedad tx staking unbond $(sedad keys show wallet --bech val -a) 1000000000aseda --from wallet --chain-id $SEDA_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1aseda -y

#Send Token to another wallet
sedad tx bank send wallet <TO_WALLET_ADDRESS> 100000000aseda --from wallet --chain-id $SEDA_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 1aseda -y

GOVERNANCE

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

#List all proposals
sedad query gov proposals

#Create new text proposal
sedad tx gov submit-proposal \
--title="Title" \
--description="Description" \
--deposit=1000000000aseda \
--type="Text" \
--from=wallet \
--gas-prices=1aseda\ 
--gas-adjustment=1.5 \
--gas="auto" \
-y 

SERVICES MANAGEMENT

# Reload Service
sudo systemctl daemon-reload

# Enable Service
sudo systemctl enable sedad

# Disable Service
sudo systemctl disable sedad

# Start Service
sudo systemctl start sedad

# Stop Service
sudo systemctl stop sedad

# Restart Service
sudo systemctl restart sedad

# Check Service Status
sudo systemctl status sedad

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

UTILITY

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

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

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

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

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

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

DELETE NODE

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

Last updated