Overview
TheBoltzSwapProvider extends Arkade contracts with two chain swap flows:
- Bitcoin to Arkade swaps - Receive BTC onchain and claim into your Arkade wallet
- Arkade to Bitcoin swaps - Send from your Arkade wallet to a Bitcoin address
@arkade-os/boltz-swap package.
Installation
Basic usage
Initializing the Chain Swap Provider
Checking limits
Before creating a chain swap, validate the supported range:Checking fees
You can estimate fees for a proposed chain swap amount:Receiving BTC payments (Bitcoin → Arkade)
When setting amount, choose one mode:senderLockAmount: sender pays exactly this amount; you receive less after feesreceiverLockAmount: you receive exactly this amount; sender pays more including fees
Monitoring incoming BTC payments
Sending BTC payments (Arkade → Bitcoin)
Monitoring outgoing BTC payments
Checking swap status
Storage
Swap records are persisted through the wallet contract repository:Cleanup
ArkadeSwaps implements a disposable lifecycle: