Passionate about Bitcoin and convinced that education is the key, I wish to share with you the little knowledge I have and thus contribute to the adoption of Bitcoin. Otherwise, I'm a big fan of Pink Floyd, I'm learning to code, and I make memes. Looking forward to meeting you at the next meet-up! I am the creator of the training course BTC 205 - Non-KYC Purchase Solution.
What is SwapMarket?
Technical architecture
src/configs/mainnet.ts. New providers added via Pull Request or email.Philosophy
Main features
Provider Marketplace
Bidirectional swaps
Safety and recovery
Installation and access
Interface web
Self-hosting (optional)
git clone https://github.com/SwapMarket/swapmarket.github.io.git cd swapmarket.github.io npm install npm run dev
docker run -p 3000:80 ghcr.io/swapmarket/swapmarket:latest
http://localhost:3000. Self-hosting guarantees total control over the interface, eliminates the risk of censorship of the official domain, and allows source code to be audited before execution.Initial configuration
Access to settings and Rescue Key
Access parameters
Page Settings
- Denomination**: Choice of BTC or sats
- Decimal Separator**: Decimal separator (, or .)
- Audio/Browser Notifications**: Audio and browser notifications
- Rescue Key** : Download the recovery key
- Logs**: View, download or delete logs
Download Rescue Key
- The Rescue Key is a one-stop emergency key that works for all your future swaps
- Keep this key in a secure and permanent place (password manager, digital safe)
- In the event of a swap problem (timeout, technical failure), this key allows you to recover your funds
Creating a swap step by step
Swap-out: Lightning → Bitcoin
- LIGHTNING** (upper field): Enter the amount you wish to send in sats Lightning (example: 30,000 sats)
- BITCOIN** (lower field): The amount you will receive is automatically displayed after fees have been deducted (example: 29,320 sats)
- Status**: Green indicator if the provider is active
- Alias**: Provider name (Boltz Exchange, Middle Way, Eldamar, ZEUS Swaps)
- Fee**: Charges applied by the provider (generally between 0.49% and 0.5%)
- Max Swap**: Maximum amount accepted for a swap
- Swap ID**: Unique swap identifier (example: J4ymFIMVR6Hm)
- Status**: "swap.created" (swap created, awaiting payment)
- QR code**: Scan it with your wallet Lightning
- Invoice Lightning**: Character string starting with "lnbc" (example: lnbc300u1p50whiv...gn5dk2szgqkvfkzc)
Swap-in: Bitcoin → Lightning
- BITCOIN** (upper field): Enter the amount you wish to send in sats Bitcoin (example: 63,400 sats)
- LIGHTNING** (bottom field): The amount you will receive is automatically displayed after deduction of fees (example: 62 884 sats)
- Swap ID**: Unique identifier (example: 1kGmB6JyGqU4)
- Status**: "invoice.set" (invoice set, awaiting payment Bitcoin)
- QR code**: Bitcoin depot address
- Bitcoin** address: Usually begins with "bc1p..." (example: bc1p5mvtwxapjkds...9d4n9f)
- Warning in yellow** : "Make sure your transaction confirms within ~24 hours after creation of this swap!"
- Status** : "transaction.mempool
- Message**: "Transaction is in mempool - Waiting for confirmation to complete the swap"
Advantages and limitations
Benefits
Limitations
Best practices
Secure configuration
Swap optimization
Usage strategy
SwapMarket vs Boltz: What's the difference?
Boltz: Technology vs. Service
boltz-backend on GitHub) that implements atomic swaps via HTLC between Bitcoin, Lightning and Liquid.Key differences
| Aspect | Boltz Exchange | SwapMarket |
| Nature | Unique service | Multi-provider aggregator |
| Providers | Boltz only | Boltz, ZEUS, Eldamar, Middle Way |
| Competition | Fixed fees | Open competition |
| Interface | boltz.exchange | swapmarket.github.io (self-hostable) |
| Security | Non-custodial (HTLC) | Non-custodial (HTLC) |
Conclusion
Resources
Official documentation
Related projects
- Boltz Exchange - Original atomic swap service
- ZEUS Swaps - Lightning swaps provider
Author
This tutorial has been written by Pierre
You can say thanks by tipping the professor.
Credits
This tutorial has not been proofread yet
The original content has been translated by AI, but human review is necessary to ensure its accuracy.
4 645 sats2 323 sats1 162 satsEvery content on the platform is the result of a collaborative effort: each lesson, translation, and revision is made possible by the work of contributors. For this reason, we are always looking for proofreaders who can review our content in many languages. If you want to participate in the proofreading process, please reach out in our Telegram group and read our tutorial. We remind you that this content is open-source - licensed under CC BY-SA - so it can be freely shared and used, as long as the original source is credited.


