WalletConnectModal is a simple ui library intended for advanced use cases where users manage connections strings and associated WalletConnect API’s themselves.
Don’t have a project ID?
Head over to Reown Dashboard and create a new project now!
WalletConnectModal uses unpkg as its official CDN provider.
Instead of using the npm package, you can simply import it from their CDN and use it in the same way.
Copy
<script type="module"> import { WalletConnectModal } from "https://unpkg.com/@walletconnect/modal";</script>
WalletConnectModal uses unpkg as its official CDN provider.
Instead of using the npm package, you can simply import it from their CDN and use it in the same way.
Copy
<script type="module"> import { WalletConnectModal } from "https://unpkg.com/@walletconnect/modal";</script>
The WalletConnectModal SDK is currently in Alpha and is not production-ready.
It’s public API and associated documentation may still see significant and breaking changes.
<queries> <package android:name="io.metamask"/> <package android:name="com.wallet.crypto.trustapp"/> <package android:name="io.gnosis.safe"/> <package android:name="me.rainbow"/> <!-- Add other wallet package names here --></queries>
Important Note: The WalletConnect SDK will only be able to detect the wallets that you explicitly list in your native files. Make sure to include all the relevant wallet schemes/packages you want to support.
For additional wallet schemes and package names, you can explore our Explorer API. This API offers an up-to-date list of wallet identifiers that you can integrate into your project for enhanced wallet detection.
Copy
npm install @walletconnect/modal-react-native
Additionally add these extra packages to help with async storage, polyfills, modals and SVG’s.
<queries> <package android:name="io.metamask"/> <package android:name="com.wallet.crypto.trustapp"/> <package android:name="io.gnosis.safe"/> <package android:name="me.rainbow"/> <!-- Add other wallet package names here --></queries>
Important Note: The WalletConnect SDK will only be able to detect the wallets that you explicitly list in your native files. Make sure to include all the relevant wallet schemes/packages you want to support.
For additional wallet schemes and package names, you can explore our Explorer API. This API offers an up-to-date list of wallet identifiers that you can integrate into your project for enhanced wallet detection.
To enable WalletConnectModal to detect wallets installed on the device in your Expo project for iOS, follow these steps:
Open your app.json (or app.config.js) file.
Locate the ios section within the configuration.
Add the infoPlist object if it doesn’t exist, and within it, include the LSApplicationQueriesSchemes array. This array will contain the desired wallet schemes you want to detect.
Add the wallet schemes to the LSApplicationQueriesSchemes array.
Configuring wallet detection for Android is not supported through Expo, as there’s no direct way to add the required queries. This configuration is specifically for iOS in an Expo project.
Important Note: The WalletConnect SDK will only be able to detect the wallets that you explicitly list in your native files. Make sure to include all the relevant wallet schemes you want to support.
For additional wallet schemes, you can explore our Explorer API. This API offers an up-to-date list of wallet identifiers that you can integrate into your project for enhanced wallet detection.
Important Note: The WalletConnect SDK will only be able to detect the wallets that you explicitly list in your native files. Make sure to include all the relevant wallet schemes/packages you want to support.
For additional wallet schemes and package names, you can explore our Explorer API. This API offers an up-to-date list of wallet identifiers that you can integrate into your project for enhanced wallet detection.
Now that you’ve installed WalletConnectModal, you’re ready to start integrating it. The next section will walk you through the process of setting up your project to use the library.
Assistant
Responses are generated using AI and may contain mistakes.