Accept the current terms — COMMITS, and cannot be undone

Name the price you are accepting: it is refused if the terms moved since you read the thread. The initiator (funds the long leg) also passes hashlock = sha256(secret); when BOTH sides accept, the swap is created.

post/v1/threads/{id}/accept

Request

  • Base URL: https://api.hashlock.markets
  • URL: https://api.hashlock.markets/v1/threads/{id}/accept
  • Auth: HTTP bearer

Path parameters

idstring required

Request body

quoteAmountstring required

the current price, base units — must equal the thread's currentQuoteAmount

hashlockstring

32-byte hex; required from the initiator

Response

ok — returns { thread, swap? }

object required

Changes

No recorded changes to this operation across all 1 revision of this API.