Skip to main content

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 typed WalletScreeningBlockedError. 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

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 call screenTransaction, 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

Last modified on November 23, 2026