Disclosure: we make Veriql and this package. Each uncached lookup costs USD 0.01, paid to Veriql over x402. Written by an AI agent; every code sample was run before publishing.
An x402 payment takes three steps. Your agent requests a URL. The server answers 402 Payment Required with a list of payment options. The client picks one, signs a payment authorization to the payTo address in it (for USDC, an EIP-3009 transfer), and retries the request with the signature attached.
The x402 Python SDK (pip install x402, version 2.29) already guards how much: its spend controls cap the amount per payment and limit which tokens it will pay in. Nothing in that flow asks who payTo is.
That matters more every month. x402scan counted about 14,000 sellers in the 30 days to 30 November 2026. An agent that finds tools on its own will be handed addresses nobody on your team has looked at.
One line
from x402 import x402ClientSync from x402_payee_guard import guard_payees client = x402ClientSync() # client.register("eip155:*", ExactEvmScheme(signer=...)) # your usual setup guard_payees(client) Install with pip install "x402-payee-guard[requests]", or [httpx] for the async x402Client.
From then on, before the client signs any payment, the guard looks up the payTo address. If the answer is do_not_pay, the hook returns the SDK's own AbortResult, and the client raises instead of signing:
x402.PaymentAbortedError: Payment aborted: payee_guard:do_not_pay:0x...: <reason> What the lookup checks
The lookup is Veriql's GET /api/v1/payee. One call checks three things:
- Sanctions: is the address on the US Treasury's OFAC SDN list?
- Drainers and scams: is it on Veriql's Drain Watch list of drainer, phishing and scam addresses?
- Issuer freezes (EVM and Tron): has Tether frozen it, or Circle blacklisted it? Read from the token contracts themselves.
| Verdict | Meaning | Guard default |
|---|---|---|
do_not_pay | at least one check found the address | blocks |
no_known_risk | every applicable check answered, none found it | allows |
incomplete | some checks could not answer | allows |
error | the lookup itself failed | allows |
The defaults fail open, so a network blip never stops an agent from paying. A treasury agent should fail closed:
guard_payees(client, on_incomplete="block", on_error="block") What it costs
Each uncached lookup costs USD 0.01. The guard pays it over x402 from the same wallet, through the same client, so there is no API key and no account. The guard does not screen its own payment to Veriql (that would loop forever).
Answers are cached per address: no_known_risk for an hour, do_not_pay for a day. An agent that pays one seller all day pays for about 24 lookups, roughly USD 0.24. Sellers you already know go in trusted=[...] and are never looked up, and allow_ttl= sets a longer cache if an hour is more caution than you need.
If you'd rather use your own list or another provider, pass fetcher= and nothing is sent to Veriql:
from x402_payee_guard import Verdict, guard_payees DENY = {"0x..."} def my_lookup(address): return Verdict(address, "do_not_pay" if address.lower() in DENY else "no_known_risk") guard_payees(client, fetcher=my_lookup) How we tested it
- 12 tests drive the real
x4022.29.0 client, sync and async, with a stub payment scheme. Ado_not_paypayee raises before anything is signed; a clean payee gets signed; answers are cached, case-insensitively for EVM addresses; failed lookups are retried, not cached; and the guard's own payment never re-enters the hook. - One live run with a brand-new, empty wallet and the real EVM scheme: the client signed the USD 0.01 authorization, Veriql answered
402because the wallet holds no USDC, the guard returnederror, and withon_error="block"the seller payment was aborted. No funds moved.
Limits
-
no_known_riskmeans none of these lists has the address today. It says nothing about whether the seller delivers what it sells. - For USDC payments the Circle check adds little: Circle's contract already rejects USDC sent to a blacklisted address, so that payment would fail at settlement anyway. The sanctions, drainer and Tether checks are what add information.
- Lists lag. A drainer set up an hour ago is on no list yet.
- Python only for now.
- This is not legal advice.
Links
- PyPI: x402-payee-guard
- API description: veriql.app/openapi.json, also listed on x402scan
- Read the freeze lists yourself, no API: stablecoin-freeze-check
- Why a sanctions screen alone misses most frozen addresses: How many crypto addresses are on OFAC's sanctions list?
- Earlier: x402 wallet screening in numbers
Produced for the Veriql team by an AI agent. Code run on 30 November 2026 against x402 2.29.0.
