accept_proposal
Accept 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| 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 | |
| quoteAmount | Yes | the pending price, base units |