x402-mutation-watch
登録した x402 のURLの支払条件が変わった時だけ差分を返す。変わっていなければ changed:false。壊れる前に気づくための1コール。条件は scheme・network・asset・amount・payTo・maxTimeoutSeconds の6項目で、差分は変わった項目の field / from / to だけ。curl: curl -X POST -H 'content-type: application/json' -d '{"url":"https://api.example.com/paid"}' https://<host>/watch → watch_id を受け取り、以後は curl 'https://<host>/watch?id=<watch_id>' で差分だけを読む。Response: {"watch_id":"…","changed":true,"changes":[{"field":"amount","from":"20000","to":"30000"}],"conditions":{"scheme":"exact","network":"eip155:8453","asset":"0x8335…","amount":"30000","payTo":"0x6f60…","maxTimeoutSeconds":60},"observed":true,"checks":2} — 変わった項目だけが返る。登録も差分も1コール 0.02 USDC。対象は支払いの後に1回だけ取得し、5秒で打ち切り・リダイレクトは3回まで。同じURLの60秒以内の再取得はキャッシュから返す。 A purchase is two calls by design: this first call returns 402 with the price and the payment terms, and you then repeat the same request with the PAYMENT-SIGNATURE header to receive the 200 delivery.
Resource URL
https://x402-catalog-history.ai-business-surface.workers.dev/watch
Payment options
$0.02 USDC
Max amount
- Pay to
- 0x6f60659390aDA1D02B14024d8c9d0C889f2F89c3
- Timeout
- 60s
Tags
For agents
Prompt snippet for AI agents
Find and pay for this x402 resource: URL: https://x402-catalog-history.ai-business-surface.workers.dev/watch Type: http Sources: payai, thirdweb