Useful commands

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

WALLET MANAGEMENT

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

#Create Wallet
pryzmd keys add wallet

#Recover Wallet
pryzmd keys add wallet --recover

#List Wallet
pryzmd keys list

#Delete Wallet
pryzmd keys delete wallet

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

VALIDATOR MANAGEMENT

Please adjust , MONIKER , YOUR_KEYBASE_ID , YOUR_DETAILS , YOUR_WEBSITE_URL

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

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

#Unjail Validator
pryzmd tx slashing unjail --from wallet --chain-id $PRYZM_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 10upryzm -y

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

TOKEN MANAGEMENT

#Withdraw Rewards
pryzmd tx distribution withdraw-all-rewards --from wallet --chain-id $PRYZM_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 10upryzm -y

#Withdraw Rewards with Comission
pryzmd tx distribution withdraw-rewards $(pryzmd keys show wallet --bech val -a) --commission --from wallet --chain-id $PRYZM_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 10upryzm -y

#Delegate Token to your own validator
pryzmd tx staking delegate $(pryzmd keys show wallet --bech val -a) 100000000upryzm --from wallet --chain-id $PRYZM_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 10upryzm -y

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

#Unbond Token from your validator
pryzmd tx staking unbond $(pryzmd keys show wallet --bech val -a) 1000000000upryzm --from wallet --chain-id $PRYZM_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 10upryzm -y

#Send Token to another wallet
pryzmd tx bank send wallet <TO_WALLET_ADDRESS> 100000000upryzm --from wallet --chain-id $PRYZM_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 10upryzm -y

GOVERNANCE

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

#List all proposals
pryzmd query gov proposals

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

SERVICES MANAGEMENT

# Reload Service
sudo systemctl daemon-reload

# Enable Service
sudo systemctl enable pryzmd

# Disable Service
sudo systemctl disable pryzmd

# Start Service
sudo systemctl start pryzmd

# Stop Service
sudo systemctl stop pryzmd

# Restart Service
sudo systemctl restart pryzmd

# Check Service Status
sudo systemctl status pryzmd

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

UTILITY

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

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

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

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

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

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

DELETE NODE

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

Last updated