Pokt RPC url on Mumbai has issues with getBalance call

Hi !

With the following code snippet:

const provider = new ethers.providers.JsonRpcProvider(
    "https://poly-mumbai.gateway.pokt.network/........"
);
const balance = await provider.getBalance(
    "0x9A71F3............65BcB"
);

I’m getting:

Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.5.2)

If I change the RPC url to one of the official ones like https://matic-mumbai.chainstacklabs.com, it works.

If I use a Pokt RPC url of another network like Rinkeby, it works.

Will I ever get some kind of answer ?

You’re seeing:Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.5.2) because the Portal, i.e.xxxx.gateway.pokt.network doesn’t support Polygon’s Mumbai.

If you click on the “Add new +” button on the application page of the Portal, you can get an endpoint for any of the supported networks.

portal-chains