x402 watch — poll event log (free)
x402_watch_eventsPoll an active watch's event log to get new endpoint changes and lifecycle events. Use the returned cursors to continue from the last read, ensuring no events are lost between polls.
Instructions
Read the append-only event log for an active x402 watch. Returns two streams: events (endpoint changes — payTo/price/asset/spec/delisting/liveness) and watch_events (lifecycle feedback — created/edited/cancelled/renewed/expiring/expired). Nothing between two polls is lost. Provide the watch_id and the one-time secret from x402_watch_create. Advance since with the returned next_cursor (endpoint events) and watch_since with watch_events_cursor (lifecycle events). Cursors/ids are GLOBAL sequences shared across watches (a watch's first event id may be >1); always page by the returned cursor rather than assuming they start at 1. Cancelled watches remain READABLE until expires_at (no new events accrue). If the watch has push delivery, still poll to reconcile missed webhooks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | Endpoint-event cursor: the `next_cursor` from a previous poll. Omit for the first poll. | |
| secret | Yes | The one-time bearer secret returned by x402_watch_create. | |
| watch_id | Yes | Watch id returned by x402_watch_create. | |
| watch_since | No | Lifecycle-event cursor: the `watch_events_cursor` from a previous poll. Omit for the first poll. |