title: Wallet Connect: No RPC Url available for chainId: 137
body: <p><a href="https://i.stack.imgur.com/6Rbop.png" rel="noreferrer"><img src="https://i.stack.imgur.com/6Rbop.png" alt="enter image description here" /></a></p>
  <p>I am trying to create a <a href="https://walletconnect.org/" rel="noreferrer">WalletConnect</a> provider.</p>
  <p>I am using the <a href="https://www.npmjs.com/package/@walletconnect/web3-provider" rel="noreferrer">@walletconnect/web3-provider</a> package along with <a href="https://github.com/Web3Modal/web3modal" rel="noreferrer">Web3Modal</a> for UI.</p>
  <p>I am instantiating the <code>WalletConnectProvider</code> using my <a href="https://infura.io/" rel="noreferrer">Infura</a> client ID</p>
  <pre><code>let web3Modal = new Web3Modal({
      network: &quot;matic&quot;,
      cacheProvider: true,
      providerOptions: {
          walletconnect: {
              package: WalletConnectProvider,
              options: {
                  infuraId: &quot;c22c90a767684c5fbd7257da57802b35&quot; ,
              },
          },
      },
  });
  
  web3Modal.clearCachedProvider();
  await web3Modal.connect();
  </code></pre>
  <p>When I run my app and connect my wallet, I get the following error:</p>
  <pre><code>Error: No RPC Url available for chainId: 137
  </code></pre>
  <p>I am trying to connect to the <a href="https://polygon.technology/" rel="noreferrer">Polygon network</a> (which is <code>chainId 137</code>).</p>
  <p>Infura does seem to support the Polygon Mainnet chain.</p>
  <p>Also, I have this chain added to my MetaMask mobile wallet, which is the wallet I am using when connecting to WalletConnect.</p>
  <p>So it should work..</p>
  <p>Any ideas how to fix this?</p>