I am new to Algorand, i am trying to setup an environment for development, i started a node, but i am not able to install the devTools, i dunno i am missing, i tried to go through all the documentation again, but didn’t find anything helpful.
Welcome @zeeshanmazhar glad you are here, let’s get you sorted
Please help me understand the documentation you followed already, so I can make changes to improve going forward. Did you read within the README.md of the GitHub repo, or a page(s) within the Developer Portal? It seems you have algod running by now. It’s not clear if your node is in sync yet, so can you try goal node status and post back the results. You will need to be in sync prior to broadcasting your first transaction.
Good news: you have everything installed as expected. I see tealdbg and other devTools. So, this folder must not be in your PATH. Confirm by reviewing the results from:
$ echo $PATH
It needs to include ~/node in that string. It’s possible you can resolve this by closing your established terminal session and starting a new one, as the $PATH is established when the session begins (not updated by the installer).
Right, I see the install script for Mac is not setting the $PATH as expected. Therefore, you must set it manually for now (I’ll raise a ticket to correct this behavior).
$ export PATH=$PATH:~/node
That will add the ~/node directory to your $PATH environment variable for this session. If you want to make this permanent, please review the appropriate documentation for your OS version and shell:
You may execute the goal node start and goal node catchup commands based on any directories you choose as instructed here. It’s no problem to do the catchup in the ~/node directory.
From your goal node status -d data output I see that algod is running (although it looks stuck because the “Last committed block” is old and “Sync time” is not increasing (until fully syncedd). Also, this node is connected to the MainNet as indicated by “Genesis ID” and “Genesis hash”. If you want to connect to TestNet or BetaNet, please review Switching Networks documentation.
Let’s restart your node:
goal node restart -d data
Next, let’s execute goal node status -d data a couple of times about 5 seconds apart. We expect to see the “Sync Time” value increasing. Then, let’s perform the fast catchup:
goal node catchup $CATCHUP -d data
Notice that you are executing goal from the ~/node directory. Your MainNet data folder is actually at ~/node/data
Yes, @zeeshanmazhar happy to help with algorand-indexer as well. However, I’m going to suggest you open a new thread for that, as this one feels “done” related to setting up the algod node.
I’ll wrap it up with an important note about the relationship between algod and algorand-indexer:
An indexer is incompatible with a node synced using Fast Catchup (as discussed earlier in this thread). Indexer requires access to an archival node to query all block history in order to buildout its local indexed copy of blockchain data.