Wallet Connect v2 adapter in Web3Auth v10

Is there a way to add wallet connect support in v10? I notice the connector still exists but I can’t seem to get it to work when I call

web3auth.connectTo(WALLET_CONNECTORS.WALLET_CONNECT_V2, {
            chainNamespace: "eip155"
          }, 'modal');

Are there any examples of how to use the wallet connect v2 connector in web3auth v10 SDK?

Thanks for your question, Jon! Here’s a summary of your request for the support team:


Topic: WalletConnect v2 Adapter in Web3Auth v10

SDK Details:

  • SDK: Web3Auth Plug n Play (Modal)
  • Version: v10 (as mentioned)
  • Platform: Web (likely React, based on code/context)

Issue Description:

  • You’re trying to add WalletConnect v2 support in Web3Auth v10.
  • You noticed the connector still exists but can’t get it to work using:
    web3auth.connectTo(WALLET_CONNECTORS.WALLET_CONNECT_V2, {
      chainNamespace: "eip155"
    }, 'modal');
    
  • You’re looking for examples or documentation on using the WalletConnect v2 connector in the v10 SDK.

What’s Provided:

  • Initialization and login code snippet (above).
  • Reference to advanced configuration docs.

Next Steps & Suggestions

  • Documentation: The official docs for External Wallets (WalletConnect) may have relevant info, but as of v10, some changes may have occurred in connector support.
  • Known Issues: There have been changes in how connectors are registered and used in recent SDK versions. In some cases, WalletConnect v2 support may require additional setup or may not be fully supported out-of-the-box in v10.

Questions for You (if you want to provide more info):

  • Are you seeing any error messages or logs in the browser console when you attempt to use the connector? If so, a screenshot or error message would help.
  • Are you using the default modal configuration, or have you customized the connectors/modalConfig?

Support Team, please advise:

  • Is WalletConnect v2 currently supported in Web3Auth v10 Modal SDK?
  • If yes, could you provide an updated example or migration steps?
  • If not, is there a recommended workaround or ETA for support?

Jon, if you have any error logs or additional context, feel free to share! Otherwise, the team will follow up with the latest guidance on WalletConnect v2 support in v10. Thank you for your detailed question!

Note: This response was generated by an AI bot and may require further verification. The Web3Auth support team has tracked this issue and will be responding as soon as possible.

Additionally, we would recommend you to join our biweekly Office Hours to get this resolved even faster. Web3Auth Developer Office Hours

Hey @Jon_DCP

If you have a look at our react quick start preview(Integration Builder | Web3Auth), it has the option to login via different wallets including metamask. Whereas if you look at the code, it has very minimal amount of code which is giving you all of that options.
We don’t need to configure adapters manually like we had to pre-v10.

Let me know if you have any questions.

Thanks Maharshi,

I was able to get the QR code modal for wallet connect much like v9, just by adding code like:

        const walletConnectModal = new WalletConnectModal({
          projectId:  'your-reown-project-id'
        });

        const instance = new Web3AuthNoModal({
          clientId: this.web3AuthClientId,
          defaultChainId: chainHex,
          chains: [],
          web3AuthNetwork: CONSTANTS.MAINNET ? WEB3AUTH_NETWORK.SAPPHIRE_MAINNET : WEB3AUTH_NETWORK.SAPPHIRE_DEVNET,
          connectors: [
            walletConnectV2Connector({
              qrcodeModal: walletConnectModal,
            })
          ]});

...