useNetworkMismatch
Hook for checking whether the connected wallet is currently on the correct chain,
i.e. the chain specified in the activeChain
on the ThirdwebProvider
.
Using this value, you can prompt users to switch their network using the useSwitchChain
hook.