Accept the deal
accept_termsAccept the current terms at the price you read (currentQuoteAmount from get_thread) — refused if it moved since. Needed only when your side's accepted flag (takerAccepted / makerAccepted) is false: your own quote, or a proposal you sent with your hashlock as the initiator, already counts. When BOTH sides have accepted, the HTLC swap is created. The initiator (funds the long leg) must pass hashlock = sha256(secret): generate a 32-byte secret yourself, keep it safe, and reveal it only when you claim; until then only its hash leaves you. Acting for a person with no wallet here (a chat assistant)? Never make the secret yourself: if they are the initiator, give them the thread's dealUrl to accept there.
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": {
"id": "<id>",
"quoteAmount": "<quoteAmount>"
},
"name": "accept_terms"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Thread id | |
| hashlock | No | 32-byte hex; required from the initiator. Acting for a person with no wallet here (a chat assistant)? Never make the secret: if they are the initiator, send them to the dealUrl to accept there. | |
| quoteAmount | Yes | the current price, base units |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| swap | No | Set once both accepted | |
| thread | No |