post_swap_offer
Publish a signed maker half to the swap offer board so takers can find it through list_swap_offers, optionally restricting access with a one-time taker secret and expiry.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"offer": "<offer>"
},
"name": "post_swap_offer"
}
}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 |