Skip to content

Instantly share code, notes, and snippets.

@asverty
Last active October 8, 2022 12:14
Show Gist options
  • Save asverty/1ccc8a0e335a74080d752d4ea53e3302 to your computer and use it in GitHub Desktop.
Save asverty/1ccc8a0e335a74080d752d4ea53e3302 to your computer and use it in GitHub Desktop.
#list of validators in one cmd:
iond q staking validators -o json --limit=2000 --node $DP_TCP \
| jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' \
| jq -r '.tokens + " - " + .description.moniker' \
| sort -gr | nl
#validator info:
iond q staking validator $DP_VLPR --node $DP_TCP
#status of node:
curl -s localhost:26652/status
#check rewards
iond query distribution rewards $DP_WLLT --node $DP_TCP
#check balance
iond query bank balances $DP_WLLT --chain-id=$DP_CHN --node $DP_TCP
#or
iond q bank balances $DP_WLLT --chain-id=$DP_CHN --node $DP_TCP
#delegation of 11 idep (denomination 10*8) to validator:
iond tx staking delegate $DP_VLPR "1100000000idep" --from $DP_WLLT --chain-id=$DP_CHN --node $DP_TCP
#if want to remove IDEP
systemctl stop iond
rm -rf /etc/systemd/system/iond.service
rm -rf .ion
rm -rf incentivized-testnet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment