I am trying to connect to the speedy bsc mainnet node but i suddenly get the following error:
Error: could not detect network (event=“noNetwork”, code=NETWORK_ERROR, version=providers/5.1.2)
I’ve been using the same code for a few days now and it was working fine until +/- 30min ago
I’ve been using the following code to connect:
import {JsonRpcProvider} from "@ethersproject/providers";
const bscProvider = new JsonRpcProvider('https://speedy-nodes-nyc.moralis.io/1a4cf06cb1679546794a3383/bsc/mainnet')
console.log('Waiting for network')
const network = await bscProvider.detectNetwork()
console.log(network)
(the code is recuded to just the related parts)