Node Management

Check logs

sudo journalctl -u mantra -f -o cat

Start service

sudo systemctl start mantra

Stop service

sudo systemctl stop mantra

Restart service

sudo systemctl restart mantra

Check service status

sudo systemctl status mantra

Reload services

sudo systemctl daemon-reload

Enable Service

sudo systemctl enable mantra

Disable Service

sudo systemctl disable mantra

Sync info

mantrachaind status 2>&1 | jq .SyncInfo

Node info

mantrachaind status 2>&1 | jq .NodeInfo

Latest Block Info

curl -s localhost:25157/status | jq .result.sync_info.latest_block_height

Your node peer

echo $(mantrachaind tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.mantrachain/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')

a

Last updated