Take the pending price
accept_proposalAccept the counterparty's pending price on a thread. Pass the pendingAmount you read from get_thread: if a newer counter replaced it, this is refused — read again and decide. With accept: true it also accepts the deal at that price in the same step (COMMITS, like accept_terms) — the proposer agreed by proposing, so this agrees the deal; the initiator (funds the long leg) passes hashlock = sha256(secret) here. Without accept, you accept afterwards with accept_terms.
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_proposal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Thread id | |
| accept | No | also accept the deal at this price (one step) | |
| hashlock | No | 32-byte hex sha256(secret); required from the initiator with accept: true. 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 pending price, base units |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| swap | No | Set once both accepted | |
| thread | No |