Hashlock Markets Swaps API
The Swaps API from Hashlock Markets — 9 operation(s) for swaps.
Operations 10
POST
/v1/swaps/{id}/legs/{leg}/fund
Build UNSIGNED transaction(s) to fund a leg — sign with your own key/HSM, then…
#
POST
/v1/swaps/{id}/legs/{leg}/claim
Build UNSIGNED claim (reveals the secret) — body: { secret: 32-byte hex }
#
GET
/v1/swaps/{id}/legs/{leg}/presign
Bitcoin leg: build its claim (receiver) or refund (funder) to PRE-SIGN, at up…
#
POST
/v1/swaps/{id}/legs/{leg}/presign
Store the pre-signed Bitcoin claim or refund — body: { kind: "claim" |…
#