Restricting user to only use one network in metamask

I have a question analogous to Metamask integration. Is there any facility in moralis, to restrict or guide the user, beforehand, to connect to only one network (like ropsten).

You could use the following to check:

const web3 = await Moralis.Web3.enable()

Then you could check the chainId in web3.currentProvider

2 Likes

Excellent! This also solved my question Check Which Chain is Connected :smile:

1 Like