I’m trying to connect to my bsc testnet server using this code:
…
const provider = new ethers.providers.JsonRpcProvider(‘https://aicocv7pccef.usemoralis.com:2053/server’)
console.log('Waiting for network')
const network = await provider.detectNetwork()
console.log(network)
…
I get the error ‘could not detect network’
What am I doing wrong?