list_swap_offers
Lists open or closed swap offers with token-type, tag, status, and change-time filters, and can wait for new or updated offers to poll the board.
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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_swap_offers"
}
}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) | |
| givesType | No | Only offers that give this token type | |
| wantsType | No | Only offers that want this token type |