# Hashlock Markets Swaps API

**Canonical:** https://apis.io/apis/hashlock-markets/hashlock-markets-swaps-api/  
**Provider:** Hashlock Markets — https://apis.io/providers/hashlock-markets/  
**Base URL:** https://api.hashlock.markets  
**Documentation:** https://docs.hashlock.markets/api-reference/introduction

Hashlock Markets Swaps API is one of 9 APIs that [Hashlock Markets](https://apis.io/providers/hashlock-markets/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 2 JSON Schema definitions. Tagged areas include Swap. The published artifact set on APIs.io includes an OpenAPI specification and 2 JSON Schemas.

The Swaps API from Hashlock Markets — 9 operation(s) for swaps.

## Operations (10)

| Method | Path | Summary |
|---|---|---|
| GET | `/v1/swaps` | List your swaps — cursor-paginated |
| GET | `/v1/swaps/{id}` | Swap lifecycle status |
| 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 } |
| POST | `/v1/swaps/{id}/legs/{leg}/refund` | Build UNSIGNED refund (after the timelock) |
| 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" \|… |
| POST | `/v1/swaps/{id}/address` | Set your receive (payout) / refund address for a leg |
| POST | `/v1/swaps/{id}/fund-intent` | Reserve an EVM leg's funding, then report its broadcast |
| DELETE | `/v1/swaps/{id}/fund-intent/{leg}` | Give back a funding reservation that never broadcast |

## Machine-readable artifacts (3)

- **OpenAPI** — https://artifacts.apis.io/hashlock-markets/openapi/hashlock-markets-swaps-api-openapi.yml
- **JSONSchema** — https://artifacts.apis.io/hashlock-markets/json-schema/hashlock-markets-signing-material-schema.json
- **JSONSchema** — https://artifacts.apis.io/hashlock-markets/json-schema/hashlock-markets-swap-schema.json

## Other Hashlock Markets APIs (8)

- [Hashlock Markets Assets API](https://apis.io/apis/hashlock-markets/hashlock-markets-assets-api/)
- [Hashlock Markets Keys API](https://apis.io/apis/hashlock-markets/hashlock-markets-keys-api/)
- [Hashlock Markets Me API](https://apis.io/apis/hashlock-markets/hashlock-markets-me-api/)
- [Hashlock Markets Rfqs API](https://apis.io/apis/hashlock-markets/hashlock-markets-rfqs-api/)
- [Hashlock Markets Threads API](https://apis.io/apis/hashlock-markets/hashlock-markets-threads-api/)
- [Hashlock Markets Tx API](https://apis.io/apis/hashlock-markets/hashlock-markets-tx-api/)
- [Hashlock Markets Wallets API](https://apis.io/apis/hashlock-markets/hashlock-markets-wallets-api/)
- [Hashlock Markets Webhooks API](https://apis.io/apis/hashlock-markets/hashlock-markets-webhooks-api/)

## Tags

Swap

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/hashlock-markets/hashlock-markets-swaps-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/hashlock-markets/.
