(networkChainId?: number | string) => Promise<void>
Available directly on the wallet object. Switch to another network by providing either the network name or chain id.
When calling switchNetwork with a connector supporting network switching, the SDK will either request the user to confirm the network switch or add the network if it was not previously set.
To first fetch the list of networks that the user can switch to, you can use the getEnabledNetworks method.