switchActiveNetwork function.
Usage
Error Handling
If the wallet provider does not support network switching, the function will throw anNetworkSwitchingUnavailableError error.
You can check if the wallet provider supports network switching by calling the isProgrammaticNetworkSwitchAvailable function.