Universal Links & App Links with WalletConnect
Metapro Wallet efficiently connects external applications to the user's wallet via App Links (Android) and Universal Links (iOS). This integration, especially with WalletConnect, allows automatic connection to the wallet without the need to manually switch between applications, ensuring a smoother user experience.
Key features and integration with WalletConnect
1. WalletConnect
WalletConnect is a protocol that enables decentralized applications (DApps) to connect to the user's wallet securely. It facilitates the authorization of various operations, such as signing transactions or interacting with smart contracts, directly from the wallet. In Metapro Wallet, WalletConnect plays a critical role in ensuring interoperability between different applications within the Web3 ecosystem.
2. Connect to external applications
With App Links and Universal Links, external applications can easily connect to Metapro Wallet using specific URL links. For example, if a DApp requires wallet authorization, it can automatically redirect the user to the correct location in Metapro Wallet (e.g. path /app/wc) where the connection process with WalletConnect is initiated.
3. Practical procedure
Connecting the app to the wallet: When a DApp sends a request to Metapro Wallet, the link that opens the wallet is constructed to directly start the WalletConnect process. The user doesn't need to take any additional action - clicking on the link automatically opens Metapro Wallet in the appropriate section, ready for authorization.
Transaction authorization: Once the wallet opens, the user can review the transaction details or operations initiated by the DApp and confirm them by signing into the wallet. These operations may include the purchase of NFTs, token exchanges, or other transactions in the Web3 ecosystem.
4. Security and convenience
Metapro Wallet ensures that the connection and transaction authorization process is secure and transparent through WalletConnect and link verification mechanisms using application certificates (on Android and iOS). The user has full control over which transactions to authorize and the process is designed to be straightforward and user-friendly.
5. User scenario
While using a DApp on a mobile device, the user initiates the connection process to the Metapro Wallet via the /app/wc link. After clicking on the link, the Metapro Wallet application opens, allowing the user to accept the connection to the DApp. Once accepted, the user is redirected back to the DApp where the connection has already been established.
If the DApp then requires Web3 login, which involves signing a message (e.g. personal signature), the DApp sends the appropriate request. The user is automatically redirected to the /app link, which opens the Metapro Wallet application with the message ready for signing. The user can sign the message in the wallet and the signature result is sent back to the DApp, completing the login or authorization process.
6. Link description
Two key URL links are used to connect DApps to Metapro Wallet:
https://wallet.metapro.one/app/wc?uri=
This link is used to start the process of connecting a DApp to Metapro Wallet using WalletConnect. Clicking on this link will open Metapro Wallet and allow the user to accept the connection.
https://wallet.metapro.one/app
Once the authorization process is complete, this link takes the user back to the Metapro Wallet application. This can be useful, for example, during a personal signing operation where the app opens with the message ready to be signed.
Key benefits
Smooth integration: The user doesn't have to manually switch between applications; App Links and Universal Links automatically open Metapro Wallet in the right place.
Security: WalletConnect ensures a secure connection between the DApp and the wallet, giving the user full control over operations.
Efficiency and ease of use: The connection and authorization process is fast and streamlined, making the overall experience convenient and intuitive.
In conclusion, the combination of App Links, Universal Links, and WalletConnect in Metapro Wallet enables smooth, secure, and intuitive interactions with Web3 applications, which is essential for the growing Web3 games and applications ecosystem.
Last updated