Check logs
sudo journalctl -u 0gchain -f -o cat
Start service
sudo systemctl start 0gchain
Stop service
sudo systemctl stop 0gchain
Restart service
sudo systemctl restart 0gchain
Check service status
sudo systemctl status 0gchain
Reload services
sudo systemctl daemon-reload
Enable Service
sudo systemctl enable 0gchain
Disable Service
sudo systemctl disable 0gchain
Sync info
0gchaind status 2>&1 | jq .SyncInfo
Node info
0gchaind status 2>&1 | jq .NodeInfo
Latest Block Info
curl -s localhost:13057/status | jq .result.sync_info.latest_block_height
Your node peer
echo $(0gchaind tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.0gchain/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
Last updated 4 months ago