RedemptionWatcher loads positions for selected wallets, watches oracle resolutions, and emits a RedeemableAlert for matching positions. It can also follow live position changes and periodically refresh positions.
Use the direct redemptions event preset when you need the raw redemption stream. Use this helper when you want wallet-aware position matching and an estimated payout in one object.
Start
Alert fields
An alert identifies the wallet, condition and token, held and winning outcomes, whether the position won, size, estimated payout, market title and slug, resolution price and payouts, block number, and timestamp. An alert is a notification to inspect a position. Your application should verify current position state before submitting a redemption transaction.Lifecycle
Register handlers beforestart so early alerts are not missed. The TypeScript and Python helpers support adding and removing wallets at runtime. All languages expose the tracked wallet/position state and a close method.
Close the watcher during shutdown to stop refresh work and release its subscriptions. Reconnect delivery is best effort; the periodic refresh is useful as a reconciliation layer, not a promise of exactly-once alerts.
See Oracle events and Redemption events for the underlying payloads.
