Clients for AnySwap: swaps between Lightning and on-chain Bitcoin or Liquid. Each SDK carries a driver that runs any number of swaps to completion and verifies everything against the chain, so an integration creates swaps and watches statuses rather than implementing the protocol.
Documentation: https://blockstream.github.io/anyswap/
| Package | Language | Source | Docs |
|---|---|---|---|
anyswap-sdk |
Rust | crates/sdk |
guide, API |
@blockstream/anyswap-sdk |
TypeScript | ts-sdk |
guide, API |
anyswap-core, the shared on-chain primitives and API types, and
@blockstream/anyswap-wasm, the TypeScript SDK's bindings to the Rust driver
in crates/sdk-wasm, are published for the SDKs above. api.yaml describes
the server API they speak. The docs site is built from
sdk-docs.
Each release lists what
changed in both SDKs; their changelogs are
crates/sdk/CHANGELOG.md
and
ts-sdk/CHANGELOG.md.
This repository is exported from Blockstream's internal repository at each release.
MIT, see LICENSE.