Chain ID: barra_9191-1 | Node Version: v0.7.0-rc3
note
First You Need Set Variabels
MONIKER=<YOUR_MONIKER_NAME>
echo "export MONIKER=$MONIKER" >> $HOME/.bash_profile
echo "export WARDEN_CHAIN_ID="barra_9191-1"" >> $HOME/.bash_profile
source $HOME/.bash_profile
- Wallet
 - Validator
 - Token
 - Service
 - Governance
 - Utility
 - Delete
 
Wallet
Create Wallet
wardend keys add wallet
Recovery Wallet
wardend keys add wallet --recover
List All Wallet
wardend keys list
Delete Wallet
wardend keys delete wallet
Check Wallet Balance
wardend q bank balances $(wardend keys show wallet -a)
Validator
note
Make sure you have adjust YOUR_KEYBASE_ID, YOUR_DETAILS, YOUR_WEBSITE_URL
Create Validator
wardend tx staking create-validator \
--amount=1000000000000000000award \
--pubkey=$(wardend tendermint show-validator) \
--moniker=$MONIKER \
--identity="YOUR_KEYBASE_ID" \
--details="YOUR_DETAILS" \
--website="YOUR_WEBSITE_URL" \
--chain-id=$WARDEN_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=10award
Edit Validator
wardend tx staking edit-validator \
--new-moniker="YOUR MONIKER" \
--identity="IDENTITY KEYBASE" \
--details="DETAILS VALIDATOR" \
--website="LINK WEBSITE" \
--chain-id=$WARDEN_CHAIN_ID \
--from=wallet \
--gas-adjustment=1.5 \
--gas="auto" \
--gas-prices=10award
Check Jailed Reason
wardend query slashing signing-info $(wardend tendermint show-validator)
Unjail Validator
wardend tx slashing unjail --from wallet --chain-id $WARDEN_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 10award -y
Token
Withdraw Rewards
wardend tx distribution withdraw-all-rewards --from wallet --chain-id $WARDEN_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 10award -y
Withdraw Rewards with Comission
wardend tx distribution withdraw-rewards $(wardend keys show wallet --bech val -a) --commission --from wallet --chain-id $WARDEN_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 10award -y
Delegate Tokens to Your Validator
wardend tx staking delegate $(wardend keys show wallet --bech val -a) 1000000000000000000award --from wallet --chain-id $WARDEN_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 10award -y
Redelegate Tokens to Another Validator
wardend tx staking redelegate $(wardend keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 1000000000000000000award --from wallet --chain-id $WARDEN_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 10award -y
Unbond Tokens from Your Validator
wardend tx staking unbond $(wardend keys show wallet --bech val -a) 1000000000000000000award --from wallet --chain-id $WARDEN_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 10award -y
Send Tokens to Any Wallet
wardend tx bank send wallet <TO_WALLET_ADDRESS> 1000000000000000000award --from wallet --chain-id $WARDEN_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 10award -y
Service
Reload Service
sudo systemctl daemon-reload
Enable Service
sudo systemctl enable wardend
Disable Service
sudo systemctl disable wardend
Start Service
sudo systemctl start wardend
Stop Service
sudo systemctl stop wardend
Restart Service
sudo systemctl restart wardend
Check Service Status
sudo systemctl status wardend
Check Service Logs
sudo journalctl -u wardend -f --no-hostname -o cat
Governance
tip
For Vote, You can change the value of yes to no, abstain, no_with_veto
Vote
wardend tx gov vote 1 yes --from wallet --chain-id $WARDEN_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 10award -y
List all Proposals
wardend query gov proposals
Check Vote
wardend tx gov vote PROPOSAL_NUMBER VOTE_OPTION --from wallet --chain-id $WARDEN_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 10award -y
Create new Proposal
wardend tx gov submit-proposal \
--title="Title" \
--description="Description" \
--deposit=1000000000000000000award \
--type="Text" \
--from=wallet \
--gas-adjustment 1.5 \
--gas "auto" \
--gas-prices=10award \
-y
Utility
Set Indexer null / kv
sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.warden/config/config.toml
Get Validator Info
wardend status 2>&1 | jq .ValidatorInfo
Get Denom Info
wardend q bank denom-metadata -oj | jq
Get Sync Status
wardend status 2>&1 | jq .SyncInfo.catching_up
Get Latest Height
wardend status 2>&1 | jq .SyncInfo.latest_block_height
Get Node Peer
echo $(wardend tendermint show-node-id)'@'$(curl -s ifconfig.me)':'$(cat $HOME/.warden/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
Set Minimum Gas Price
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.0025award\"/" $HOME/.warden/config/app.toml
Enable Prometheus
sed -i 's|^prometheus *=.*|prometheus = true|' $HOME/.warden/config/config.toml
Reset Chain Data
wardend tendermint unsafe-reset-all --home $HOME/.warden --keep-addr-book
Delete
WARNING!!! Please, before you advance to the following step! The entire chain data will be gone! Make sure you have a backup of your priv_validator_key.json!
Delete Node
sudo systemctl stop wardend && sudo systemctl disable wardend && sudo rm /etc/systemd/system/wardend.service && sudo systemctl daemon-reload && sudo rm -rf $(which wardend) && rm -rf $HOME/.warden