x402 watch — poll event log (free)
x402_watch_eventsRead the append-only event log for an active x402 watch, returning endpoint changes and lifecycle events. Use watch_id and secret to start, then advance with provided cursors to avoid data loss.
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. |