I am having trouble with network connection. I am working in a react app. I have tried two different methods for connecting to the Algorand Network. However, the problem is the network is consistently failing to respond.
My preferred method to connect is via AlgoExplorer, but I read they were stopping service. So, I wasn’t sure if that was causing the error. So, I switched to PureStake, which is also failing. I do not have enough information to debug further from the console logs. Any suggestions would be appreciated. Thanks.
Purestake Network Connection Mechanism
const algod_address = "https://mainnet-algorand.api.purestake.io/ps2"
const algod_token = ""
const headers = {"X-API-Key": algod_token }
const algodClient = new algosdk.Algodv2(algod_token, algod_address, headers);
Error
mainnet-algorand.api.purestake.io/ps2/v2/transactions/params:1 Failed to load resource: net::ERR_FAILED
AlgoExplorer Network Connection Mechanism
const algod_address = "https://node.algoexplorerapi.io"
const algod_token = ""
const headers = {"X-API-Key": algod_token }
const algodClient = new algosdk.Algodv2(algod_token, algod_address, headers);
Error
browser-ponyfill.js:518 GET https://node.algoexplorerapi.io/v2/transactions/params net::ERR_NAME_NOT_RESOLVED
