useSwitchChain
Hook for switching to a different network.
Example
Returns
A function to switch the network in the currently connected wallet to network with given chainId
Hook for switching to a different network.
A function to switch the network in the currently connected wallet to network with given chainId