
A common error encountered when using WalletConnect with Dynamic Embedded Wallets is Unsupported chain. This error occurs when the chain ID of the network you are trying to connect to is different than the chain specified by the WalletConnect provider.
UnknownRPCError: An unknown RPC error occurred.
Details: Unsupported chainTo resolve this error, the DynamicContextProvider can be configured to dynamically change the desired WalletConnect chain ID of the network you are trying to connect to using the walletConnectPreferredChains property.
Learn more about DynamicContextProvider settings.
jsx
<DynamicContextProvider
walletConnectPreferredChains={['eip155:1']}
... // additional parameters
/>