list_swap_offers
List and filter swap offers on the board, including a change feed for polling, and optionally wait for a matching offer before returning.
Instructions
Offers on the server's board. Without status: the open ones, newest first. status filled | retired | expired | all reads the closed ones instead, ordered by last change; since keeps offers changed after that instant, so status all + since polled repeatedly is the board's change feed. With waitMs the server holds an empty answer until an offer matches or the time is up, so a watcher makes one call per change instead of one per interval. Filters are exact 64-hex token types and one tag. Each row: offerId, the offer half (feed it to read_swap_offer or take_swap_offer), gives/wants type and amount, tags, expiresAt, postedAt, status, filledTxHash, closedAt, changedAt. Never the poster or the half's nullifiers. Every token may read the board.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Only offers carrying this tag | |
| limit | No | Default 50 | |
| since | No | ISO timestamp; only offers changed after it | |
| status | No | Default open | |
| waitMs | No | Hold the call while nothing matches, up to this many ms (at most 25000); needs NIGHTGATE 0.38.0 | |
| givesType | No | Only offers that give this token type | |
| wantsType | No | Only offers that want this token type |