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

We Tested Our Own x402 Agent Payments With Real Money — Found a Bug, Fixed It, Here’s the Proof

Описание и применение

Платёжный шлюз x402 для AI‑агентов на Base mainnet иногда падал из‑за устаревшего кэша санкций OFAC, вызывающего скачивание 5 МБ. Удалив скачивание из пути оплаты и установив фоновой обновитель кэша, а также увеличив окно авторизации до 600 с, все GPU‑заказы успешно завершились за секунды.

Задача

The x402 payment endpoint failed for some GPU jobs due to a stale OFAC sanctions-list cache causing a 5 MB Treasury re‑download that exceeded the 120‑second authorization window.

Результат

All eight GPU jobs settled with on‑chain hashes; two previously failing jobs now complete in 18.8 s. The payment path no longer stalls due to cache refresh.

Рабочий процесс

  • 1. Submit GPU job request to public x402 endpoint.
  • 2. Endpoint issues 402 Payment Required challenge.
  • 3. Agent signs authorization and sends payment request.
  • 4. System checks OFAC cache; previously triggered a 5 MB download.
  • 5. Payment processed and on‑chain transaction confirmed.
  • 6. Job executed and resources torn down.

Доказательства

2 of 8 jobs failed on a 120‑second payment authorization window.

Источник

Root cause wasn’t price lookup or payment logic — it was our OFAC sanctions‑list cache going stale, triggering a live 5MB Treasury re‑download on every payment with no timeout.

Источник

Re‑ran the exact failing config: settled in 18.8 seconds.

Источник

  • Дата записи: 2026-09-22T14:15:39.403Z