DOCS

useSwitchChain

Returns

a method to connect the wallet to network/chain with given chainId

type ReturnType = (chain: number) => Promise<void>;