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 the modal.
note
This is a paid feature and the minimum pricing plan to use this SDK in a production environment is the Scale Plan. You can use this feature in Web3Auth Sapphire Devnet network for free.
Parameters
Name | Description |
---|---|
show | Determines whether the Wallet Connect UI is displayed. This can be used to programmatically control its visibility. |
Usage
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({
show: true,
});