Handy commands

Global consensus state

curl http://localhost:26657/consensus_state | jq '.result.round_state.height_vote_set[0].prevotes_bit_array'

Check to see if chain is sync

curl -s http://localhost:26657/status | jq '.result.sync_info.catching_up'

Set pruning on node

sed -i 's/^pruning = .*/pruning = "custom"/; s/^pruning-keep-recent = .*/pruning-keep-recent = "100"/; s/^pruning-keep-every = .*/pruning-keep-every = "0"/; s/^pruning-interval = .*/pruning-interval = "10"/' /home/juno/.juno/config/app.toml

Set Indexer "null"

sed -i 's/^indexer *=.*/indexer = "null"/' /home/nois/.noisd/config/config.toml

Validator pre-voting status

curl -s http://localhost:26657/dump_consensus_state | jq '.result.round_state.votes[0].prevotes' | grep $(curl -s http://localhost:26657/status | jq -r '.result.validator_info.address[:12]')

Validator list

gaiad q staking validators  --node http://localhost:26657 -o json --limit=1000 | jq '.validators[]' | jq -r '.tokens + " - " + .status + " - " +  .description.moniker + " - " + .operator_address' | sort -gr | nl

Set External Address

ip addr

Number of connected peers

Number of peers

Validator voting power

Peer list

Check Chain ID via REST API

Download Genesis from RPC

Export Chain Height

Storage

Last updated