OFAC sanctions check API for crypto wallets: screen an address before your agent pays it (PayGuard)
Updated 2026-10-21
Disclosure: PayGuard is built and operated by the youraitools.co team, and payments go to our own wallet. It is listed on our Built by us page and kept out of the directory rankings.
PayGuard tells your agent whether a crypto address appears on the US Treasury OFAC SDN list before it sends money there. One call checks an address against every digital currency address OFAC publishes in the SDN list. It returns sanctioned true or false and, on the paid tier, the matching SDN entity, its sanctions programs, the list date and a checksum check. A check costs $0.001 USDC on Base, Polygon, Arbitrum One or Solana over x402, a batch of up to 50 addresses costs $0.01, and there's no API key or signup.
Informational screening, not legal advice. PayGuard is not a compliance program. See "Limits" below.
- Product page with a free try box and MCP install snippets: youraitools.co/payguard
- Live API:
https://api.youraitools.co/payguard(also athttps://payguard.agentgate.workers.dev) - Source code (MIT) · API reference (OpenAPI) · x402 manifest · list info
- Also listed on Agentic.Market (agentic.market,
/v1/address)
When to use it
- Before an agent pays an address it found in a tool response, an invoice or a chat message.
- Before you add a counterparty wallet to an allowlist or payout table.
- As one cheap first gate in front of a fuller compliance process (not instead of one).
The data
The list comes from the official OFAC files at sanctionslistservice.ofac.treas.gov (SDN.XML). On 2026-10-21 /v1/list reported 1,050 addresses across 106 SDN entries, list date 2026-10-21. By currency: XBT 533, TRX 261, ETH 120, USDT 94, LTC 14, XMR 11, BCH 7, DASH 5, SOL 4, ZEC 4, plus a few others. Every response carries list_updated_at and list_age_days, so you can see how fresh the data is.
Matching is exact. EVM 0x and bech32 / cashaddr addresses are case-insensitive, and base58 formats (BTC legacy, TRX, SOL, LTC, XMR) are case-sensitive.
Routes
| Route | Price | Returns |
|---|---|---|
GET /v1/address?address=<addr> (or POST {"address"}) |
$0.001 USDC | sanctioned, match count, matches (entity, type, SDN uid, programs, list date, listed currency), chain guess and checksum check, list date |
POST /v1/batch with {"addresses": [...]} (1-50) |
$0.01 USDC | count, sanctioned_count, any_sanctioned, results[] |
/v1/preview?address= (GET or POST) |
free, 10/min per IP | sanctioned true/false, match count and chain guess (no entity, programs, list date or checksum) |
POST /mcp (Streamable HTTP, tool screen_address) |
free, preview tier | preview-tier result as text |
/v1/list, /openapi.json, /.well-known/x402, /health |
free | list date and counts, specs |
Invalid input gets HTTP 400 before any payment is asked for. On 2026-10-21 ?address=notanaddress returned 400 bad_request, not 402.
Try it free
# Lazarus Group address from the SDN list -> "sanctioned": true
curl -s "https://api.youraitools.co/payguard/v1/preview?address=0x098B716B8Aaf21512996dC57EB0615e2383E2f96"
# USDC contract on Base -> "sanctioned": false
curl -s "https://api.youraitools.co/payguard/v1/preview?address=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
We ran both on 2026-10-21. The first returned "sanctioned": true, "match_count": 1 and the second "sanctioned": false, each with "list_updated_at": "2026-10-21" and a disclaimer.
Remote MCP (preview tier):
{ "mcpServers": { "payguard": { "type": "http", "url": "https://api.youraitools.co/payguard/mcp" } } }
On 2026-10-21 tools/list returned screen_address, and a call on the Lazarus Group address returned "SANCTIONED (1 OFAC SDN match)".
The x402 payment, verified
An unpaid GET /v1/address?address=0x098B…2F96 returns HTTP 402 with a PAYMENT-REQUIRED header. Decoded on 2026-10-21:
- x402 version 2, scheme
exact - networks
eip155:8453(Base),eip155:137(Polygon),eip155:42161(Arbitrum One) and Solana mainnet, at the same amount (rechecked 2026-10-23) - amount
1000(0.001 USDC;POST /v1/batchasks for10000, 0.01 USDC) - asset
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913(native USDC on Base; native USDC on each of the other networks too) - payTo
0x3c1A1E01e790Cd326495631B3b38Bd7068F08d6Fon the EVM networks andFH73WbbUe2UyNzfy72MJs5nT3NxyDf9GrqE7kzjL2Jteon Solana (our wallets) - The x402 payment settles on-chain, so you pay no gas. The body also carries x402 v1 terms, Base only (
network: base,X-PAYMENTheader).
Pay from code
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPaymentFromConfig } from '@x402/fetch';
import { ExactEvmScheme } from '@x402/evm';
import { privateKeyToAccount } from 'viem/accounts';
const pay = wrapFetchWithPaymentFromConfig(fetch, {
schemes: [{ network: 'eip155:8453', client: new ExactEvmScheme(privateKeyToAccount(process.env.BUYER_KEY)) }],
});
async function safeToPay(address) {
const r = await (await pay(`https://api.youraitools.co/payguard/v1/address?address=${encodeURIComponent(address)}`)).json();
if (r.sanctioned) throw new Error(`Blocked: ${r.matches.map((m) => m.entity).join(', ')}`);
return r; // a clear result is not a guarantee, see Limits
}
Response fields
address, sanctioned, match_count, matches[] (entity, entity_type, sdn_uid, programs[], list_date, listed_currency, listed_as), chain (format, guess, candidates[], checksum, checksum_valid, checksum_address), source, source_url, list_updated_at, list_age_days, sdn_address_count and disclaimer.
Limits, stated honestly
- Informational screening, not legal advice, and not a compliance program.
- Only addresses OFAC publishes are matched. A clear result does not mean the address or its owner is unsanctioned: sanctions also cover people and property OFAC doesn't list by address, and funds can be one hop away.
- No EU, UK or UN lists, and no on-chain exposure analysis.
- The hosted API is rebuilt daily.
- Per the service's published policy, screening is an in-memory lookup with no third-party calls, and inputs are not stored or logged.
FAQ
Who runs it? The youraitools.co team. Payments go to our own wallet. See the disclosure at the top.
Do I need an API key? No. Use the free preview or MCP, or pay per call with any x402 client on Base, Polygon, Arbitrum One or Solana.
Can I self-host it? Yes. The source code is MIT.
Related tools: AgentGate verifies who an agent is, WebRead reads a page, InjectScan checks it's safe to follow, and DomainCheck checks the domain or email behind it.
Want the same x402 paywall and MCP server on your own API? We x402-enable your API in 48 hours →
New to x402, the HTTP 402 payment standard these APIs use? Read what x402 is and how agents pay per call.
Liked this guide? Get new crypto-payable AI tools weekly
One short email a week with the x402 and pay-per-call tools we added and re-verified. No spam, unsubscribe any time.