Prerequisites
Before this page: a wallet connection flow (see Connecting external wallets).What you’ll build
When your project enables compliance screening, a wallet that fails (for example, one on a sanctions list) is rejected during verification with a typedWalletScreeningBlockedError. You’ll catch it and show a clear access-denied state instead of a generic failure.
Screening runs server-side during connect + verify — you don’t call it yourself. Your job is to branch on the specific error.
Catching the blocked error
- TypeScript
- React
Keep the access-denied copy neutral — the user usually can’t fix a screening result. Offer a way to connect a different wallet or contact support rather than a retry that will fail again.
Screening transactions before signing
Connect-time screening runs without any call from your code. Transaction screening works differently. When your project enables it, you callscreenTransaction, or the helper for your chain, before an external wallet is prompted to sign. The call returns a verdict instead of throwing, so you branch on decision yourself. For the functions, parameters, and examples, see Screen transactions before signing.
Handling errors
See also
- Connecting external wallets — the connect + verify flow that runs screening
- Screen transactions before signing: per-transaction screening before an external wallet signs
- Connected wallets management — manage wallets that passed screening