Prerequisites
- Please ensure you have integrated Wallet SDK into your wallet.
- Please ensure that you have obtained and configured the project ID from the WalletConnect Dashboard.
Maintaining a Blocklist of Apps
Wallet SDK allows you to identify malicious apps using Verify API. However, as a wallet, you will need to build your own logic for the UI and UX of blocking certain apps. If there are specific apps that you want to block (not flagged as malicious by Verify API), you will need to maintain a blocklist of apps by storing the app’s metadata in a database or a file.Inspecting Session Requests
When receivingonSessionProposal
events, check the dapp’s metadata (name, URL, description) from proposal.proposer.metadata
.
After this, you can reject unwanted connections by calling rejectSession()
for apps you want to block. For example: