Skip to main content
POST
Accept the counterparty's pending price

Authorizations

Authorization
string
header
required

An API key (hk_live_… / hk_test_…) with read/taker/maker scopes. read is read-only: every write except webhooks needs taker or maker (403 otherwise), and either of those can read too. Creating RFQs and listing tokens need taker; quoting needs maker.

Path Parameters

id
string
required

Body

application/json
quoteAmount
string
required

the pending price, base units — must equal the thread's pendingAmount

accept
boolean

also accept the deal at this price (one transaction)

hashlock
string

32-byte hex sha256(secret); required from the initiator with accept: true

Response

ok — { thread }, or with accept: true { thread, swap? }

thread
object
required

one maker's negotiation on an RFQ

swap
object

present once both sides have accepted — the swap the agreement created