post_swap_offer
Publish a signed maker offer half to the server offer board so takers can discover it through listing, with terms validated and optional directed access via a one-time taker secret.
Instructions
Post a maker half on the server's offer board, so takers find it with list_swap_offers instead of receiving the offer file out of band. The server checks it like a half it would sponsor (one token type given, one wanted, both on its list, never NIGHT) and records its terms; the half itself stays signed by the maker. The offer closes when a swap that spends one of its inputs lands, on expiry, or by retire_swap_offer. Needs postSwapOffer in an agent grant's allowedActions. Returns { offerId, status, terms }. With directed: true only a taker who knows the returned takerSecret can have the swap sponsored: hand that secret to your counterparty, it is shown once (needs NIGHTGATE 0.39.0).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Up to 8 tags for list_swap_offers | |
| offer | Yes | The maker half, as offer file text or base64: offer file text (swapoffer1...) or base64 of the serialized, proven transaction | |
| directed | No | true: the offer can only be taken with the takerSecret this call returns; for an invoice or an agreed OTC deal | |
| expiresAt | No | ISO timestamp; at most 90 days ahead |