Interoperability with WalletConnect in PnP Web Modal SDK
For enabling interoperability with Wallet Connect, ie. connecting your W3A generated wallet to other
dApps which have Wallet Connect integration, you can use the showWalletConnectScanner()
method.
This method uses the Wallet Connect copy and paste
flow, in which you can directly copy the QR
Code details from a dApp like OpenSea and paste in it your shown modal.
note
This is a paid feature and the minimum pricing plan to use this
SDK in a production environment is the Growth Plan. You can use this feature in
sapphire_devnet
for free.
showWalletConnectScanner()
Shows the Wallet Connect Scanner to connect with dApps having Wallet Connect login option. This is useful for interoperability with dApps having Wallet Connect login option.
import { WalletServicesPlugin } from "@web3auth/wallet-services-plugin";
const walletServicesPlugin = new WalletServicesPlugin();
web3auth.addPlugin(walletServicesPlugin); // Add the plugin to web3auth
await walletServicesPlugin.showWalletConnectScanner();