Skip to content

Track: Add chain swap (ARK ↔ BTC) support via Boltz — parity with rust-sdk #57

@arkanaai

Description

@arkanaai

SDK Parity Tracking Issue

Source: rust-sdk#200 merged 2026-04-01 — adds BTC↔ARK chain swap support via Boltz to ark-client.

Background

The rust-sdk now supports a third Boltz swap type alongside submarine and reverse submarine swaps:

  • ARK → BTC: Lock a VHTLC on Ark; Boltz claims it and locks BTC; user claims BTC via MuSig2 HTLC
  • BTC → ARK: Send on-chain BTC to a Boltz HTLC; Boltz locks a VHTLC on Ark; user claims the VHTLC

Both flows use the Boltz v2 chain swap API (POST /v2/swap/chain). The TypeScript reference implementation is in boltz-swap/src/arkade-swaps.ts.

New Types (rust-sdk public API, needs dotnet-sdk equivalent)

ChainSwapAmount
ChainSwapData
ChainSwapDirection  // ArkToBtc { btc_address } | BtcToArk
ChainSwapResult
SwapStatusInfo      // unified status across all 3 swap types
SwapType            // Submarine | Reverse | Chain | Unknown

New Methods (rust-sdk, needs dotnet-sdk equivalent)

CreateChainSwap()
WaitForChainSwapServerLockup()
ClaimChainSwap()        // Claim on-chain BTC (ARK→BTC)
ClaimChainSwapBtc()
RefundChainSwap()       // Refund VHTLC (ARK→BTC timeout)
RefundChainSwapBtc()
GetSwapStatus()         // Now covers all 3 swap types

References

Opened by Arkana cross-repo impact analyzer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions