Skip to main content

Automatic Chain Switching

Specify whether to show a "Switch Network" button after the wallet is connected but it is not connected to the activeChain set in ThirdwebProvider to encourage the user to switch to the correct network in their wallet.

activeChain must be explicitly set in ThirdwebProvider for this to work.

By default, it is set to false.

<ConnectWallet switchToActiveChain={true} />