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