Problem with obtaining sandbox node algod_address and algod_token

How to obtain my sandbox node algod_address and algod_token for connecting to the node with SDKs?

it defaults to

    const token = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
    const server = "http://localhost";
    const port = 4001;

You can get into the sandbox via the following command as well.

./sandbox enter algod
1 Like

For your own algod_address and algod_token…

  1. start up the node,
  2. look in your data directory
  3. look at the contents of algod.net and algod.token, these files will appear once you start the node and they will disappear when stopped.
1 Like