Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

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