Add real-time sanctions screening before payment authorization.
async function processPayment(payment) {
// Step 1: Screen counterparty
const screen = await fetch(
`https://sanctionsai.dev/sanctions?wallet=${payment.wallet}`
);
const result = await screen.json();
// Step 2: Block if sanctioned
if (result.blocked) {
await logBlock(payment, result.matches);
return { status: "blocked", reason: "OFAC_MATCH" };
}
// Step 3: Proceed if clean
await logScreen(payment, "clean");
return await executePayment(payment);
}| Step | Action | On failure |
|---|---|---|
| Extract ID | Get wallet/name | Abort |
| Screen | Call API | Fail safe: block |
| Log | Record result | Alert |
| Execute | Proceed if clean | Block if flagged |
Check any wallet, name, or entity against OFAC, EU, UN sanctions lists in real time.
Free wallet checker