Useful commands
Information
# check the blocks
0gchaind status 2>&1 | jq ."SyncInfo"."latest_block_height"
# check the logs
journalctl -u 0gchaind -f -o cat
# check status
curl localhost:26657/status
# check balance
0gchaind q bank balances <address>
# check the validator pubkey
0gchaind tendermint show-validator
# check the validator
0gchaind query staking validator <valoper_address>
0gchaind query staking validators --limit 1000000 -o json | jq '.validators[] | select(.description.moniker=="<name_moniker>")' | jq
# check TX_HASH information
0gchaind query tx <TX_HASH>
# network parameters
0gchaind q staking params
0gchaind q slashing params
# check how many blocks are missed by the validator and from which block is active
0gchaind q slashing signing-info $(0gchaind tendermint show-validator)
# find out the validator creation transaction (replace your valoper_address)
0gchaind query txs --events='create_validator.validator=<your_valoper_address>' -o=json | jq .txs[0].txhash -r
# view active set
0gchaind q staking validators -o json --limit=1000 \
| jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' \
| jq -r '.tokens + " - " + .description.moniker' \
| sort -gr | nl
# view inactive set
0gchaind q staking validators -o json --limit=1000 \
| jq '.validators[] | select(.status=="BOND_STATUS_UNBONDED")' \
| jq -r '.tokens + " - " + .description.moniker' \
| sort -gr | nlTransactions
Working with wallets
Delete node
Governance
Peers and RPC
Last updated