This may be a dumb question but is there a way in which using the Moralis library we can programatically switch the selected metamask network, chain id
I found this example where they are doing it through window.ethereum global variable
And I was wondering how to accomplish it using our Web3 provider once we have authenticated and enabled our web3 instance or before enabling our instance. In any case my use case is a modal window which makes the user select the network they want to use 'Binance,Etherium and choose their wallet type metamask or using trust wallet using the walletconnect provider option.
If they have selected metamask and binance i want to be able to switch their network/chain id over to the binance network if they were lastly using the etherium network.
Any suggestions regarding the question and the use case will be highly appreciated, many thanks in advance.