Last updated
Last updated
Establishing a Connection
1. Initiating the Connection:
When a user wants to interact with a DApp, they will be presented with a WalletConnect option.
The DApp displays a QR code or a deep link for the user to scan or click.
2. Scanning the QR Code:
Using a WalletConnect-compatible mobile wallet, the user scans the QR code displayed by the DApp.
Alternatively, if the user is on a mobile device, they can click the deep link, which will open their wallet app directly.
Secure Communication
1. Pairing Session:
Upon scanning the QR code or clicking the deep link, the wallet and the DApp establish a pairing session.
This session is encrypted, ensuring that all data transmitted between the wallet and the DApp remains secure and private.
2. Transaction Signing:
When the user initiates a transaction on the DApp, such as a token transfer or a swap, the transaction details are sent to the wallet through the secure WalletConnect session.
The user can review the transaction details in their wallet app and approve or reject the transaction.
Completing the Interaction
1. Broadcasting the Transaction:
Once the user approves the transaction, the wallet signs it with the user's private key and broadcasts it to the blockchain.
The DApp receives confirmation that the transaction has been signed and submitted.
2. Ending the Session:
After completing their interactions, users can disconnect the session from either the wallet or the DApp, ending the secure communication channel.
Benefits of Using WalletConnect
Enhanced Security
WalletConnect ensures that private keys are never exposed to the DApp, as they remain securely stored within the user's wallet.
The encrypted communication channel prevents data interception and unauthorized access.
User Convenience
Users can connect to DApps with a simple QR code scan or deep link click, eliminating the need for cumbersome manual inputs.
WalletConnect supports a wide range of wallets and DApps, providing users with flexibility and choice.
Cross-Platform Compatibility
WalletConnect is compatible with various mobile wallets, including MetaMask, Trust Wallet, Rainbow, and more.
It works seamlessly across different platforms and devices, making it accessible to a broad audience.
Interoperability
WalletConnect supports multiple blockchains and DApps, enabling users to interact with a diverse range of decentralized services and protocols.
It fosters interoperability within the DeFi ecosystem by bridging the gap between wallets and DApps.