💡Useful Command

Add sudo if you're not in ROOT users.

Check your node status using curl

Change your port if you're using custom port.

curl -X GET \
     -H "X-Algo-API-Token: yourtoken" \
     "http://127.0.0.1:8080/v2/status"

Check your algorand service status

In this step you will find the port you are using in the algorand node.

systemctl status algorand

Restart node

systemctl restart algorand

Check node status

goal node status -d /var/lib/algorand

⚠️ Stop node ⚠️

systemctl stop algorand

⚠️ Delete Algorand from your server ⚠️

apt-get remove algorand algorand-devtools
sudo rm -rf /var/lib/algorand/

Add variable

In this step if you want to use goal node status without using -d flags you can follow this command below.

echo "export ALGORAND_DATA=/var/lib/algorand" >> ~/.bash_profile
source ~/.bash_profile

Now you can use this command without using -d flags.

goal node status

I'll add more command soon, i just exploring algorand node.

Last updated