Where is token, server, port in purestake api?

const token = “ZAAHQ7DV7745I5WXAQPXL4GI4ASAV3KWSWM2IJF3UBWJLEDBDISXY2MCT4”;
const server = “https://testnet-algorand.api.purestake.io/ps2”;
const port = 8080;

I tried the account address, link in purestake of testnet and my localhost port.
But I cannot get output for it.

    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16) {
  errno: -4039,
  code: 'ETIMEDOUT',
  syscall: 'connect',
  address: '52.84.6.57',
  port: 8080,
  response: undefined
}
Trace
    at G:\algo\algorand java\5ASA\asa.js:522:13
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
type or paste code here

You first need to create an account on PureStake: PureStake Developer Portal

Then see code samples: PureStake Developer Portal

Note that the way tokens are passed to PureStake API is different than from your own algod. See links above.

1 Like

Okay thanks a lot for the reply.