Check the payee before your AI agent pays it (x402, Node and Python)
Описание и применение
Проверка адреса получателя перед оплатой через x402 предотвращает отправку средств адресам, находящимся в санкционных списках.
Задача
AI agents that pay over x402 risk sending funds to sanctioned wallets if the payee address is not verified.
Результат
Integrating a sanctions check before payment prevents the agent from sending funds to addresses on major sanctions lists, reducing regulatory risk.
Рабочий процесс
- 1. Agent receives 402 response with payTo address.
- 2. Agent calls https://sanctions.nsgoods.org/screen-multi?address=
<payTo>to screen the address. - 3. Service returns signed JSON with verdict and any_list_match flag.
- 4. Agent evaluates verdict and any_list_match; if verdict is "clean" and any_list_match is false, proceed to pay; otherwise abort.
- 5. If the check fails or times out, the agent does not pay.
Доказательства
One paid call screens a wallet address against four lists: OFAC SDN, UN Consolidated, EU and UK.
The response has a headline verdict (clean, deny or indeterminate_ofac_unavailable) and an any_list_match flag that covers all four lists.
Exit code 0 means clean, go ahead. Any other exit code means do not pay, so you can drop it in front of the payment step of an agent or a script.
- Дата записи: 2026-10-07T15:55:52.849Z