Skip to content

Useful commands


Node Backup and Restore

The NodeID is identified by two files:

  • staker.crt
  • staker.key

You will be able to find these files in the juneogo installation, specifically in ~/.juneogo/staking.

This folder contains a third file:

  • signer.key
Check your node
Terminal window
curl -X POST --data '{
"jsonrpc":"2.0",
"id" :1,
"method" :"info.isBootstrapped",
"params": {
"chain":"JUNE"
}
}' -H 'content-type:application/json;' 127.0.0.1:9650/ext/info
Get your node informations
Terminal window
curl -X POST --data '{
"jsonrpc":"2.0",
"id" :1,
"method" :"info.getNodeID"
}' -H 'content-type:application/json' 127.0.0.1:9650/ext/info
Check the health of your node
Terminal window
curl -H 'Content-Type: application/json' --data '{
"jsonrpc":"2.0",
"id" :1,
"method" :"health.health",
"params": {
"tags": ["11111111111111111111111111111111LpoYY"]
}
}' 'http://127.0.0.1:9650/ext/health'

Delete Node

Terminal window
sudo systemctl stop juneod
sudo systemctl disable juneod
rm /etc/systemd/system/juneod.service
rm -rf juneogo-binaries .juneogo