Useful Commands
Information
# Check the blocks
0gchaind status 2>&1 | jq ."sync_info"."latest_block_height"
# Check logs
journalctl -u 0gchaind -f -o cat
# Restart
systemctl restart 0gchaind && journalctl -u 0gchaind -f -o cat
# Check your EVM Address
echo "0x$(0gchaind debug addr $(0gchaind keys show wallet -a) | grep hex | awk '{print $3}')"
# Check status
0gchaind status 2>&1 | jq .sync_info
# Check balance
0gchaind q bank balances $(0gchaind keys show wallet -a)
# Check pubkey of validator
0gchaind tendermint show-validator
# Check validator
0gchaind q staking validator $(0gchaind keys show wallet --bech val -a)
0gchaind q staking validators --limit 1000000 -o json | jq '.validators[] | select(.description.moniker="$(0gchaind keys show wallet --bech val -a)")' | jq
# Check information of TX_HASH
0gchaind q tx <TX_HASH>
# Check how many blocks were passed by the validator and from which block the asset
0gchaind q slashing signing-info $(0gchaind tendermint show-validator)! If the transactions are not sent with the error account sequence mismatch, expected 18, got 17: incorrect account sequence, then add the flag -s 18 to the command (replace the number with the one that is waiting for the sequence)
Work with wallets
Delete Node
Governance
Peers and RPC
Last updated
Was this helpful?