> ## Documentation Index
> Fetch the complete documentation index at: https://www.dynamic.xyz/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# WalletConnect Unsupported Chain

<img width="700px" src="https://mintcdn.com/dynamic-docs-testing/L6Baf9nHRMN5_MjI/images/troubleshooting/walletconnect-unsupported-chain.png?fit=max&auto=format&n=L6Baf9nHRMN5_MjI&q=85&s=992ec529e5e7bdafabbbb78be6dc15ac" alt="walletconnect-unsupported-chain" data-path="images/troubleshooting/walletconnect-unsupported-chain.png" />

A common error encountered when using WalletConnect 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 chain
```

To resolve the above 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. [See here](/docs/react/reference/providers/dynamiccontextprovider#settings)

```jsx theme={"system"}
<DynamicContextProvider
walletConnectPreferredChains={['eip155:1']}
... // additional parameters
/>
```
