← All posts

6 min read

Bitcoin Lightning Swaps: How They Work, What You Need, and How to Do One

Bitcoin Lightning Swaps: How They Work, What You Need, and How to Do One

Most instant swaps deliver Bitcoin on-chain — to a normal bc1 address, confirmed in Bitcoin's ~10-minute blocks. A Lightning swap is different: it delivers (or receives) BTC over the Lightning Network, Bitcoin's instant, near-free second layer. That changes how the swap works — there's no static address, you use an invoice, and settlement is near-instant. This guide explains what makes Lightning different, how it actually works, what wallet you need, and exactly how to do a Lightning swap.

This is general educational content, not financial advice. You're responsible for your own keys, taxes, and compliance with your local laws.

What the Lightning Network is

Lightning is a layer-2 network built on top of Bitcoin. Instead of recording every payment on the blockchain, two parties open a payment channel with one funding transaction, then send unlimited instant payments back and forth off-chain, and only settle to the base chain when the channel closes. Payments hop across a web of these channels to reach anyone — so you get instant, sub-cent Bitcoin payments without waiting for blocks. It's the same BTC, just moving on a faster rail. New to swaps in general? Start with What is an Instant Swap Exchange?

How Lightning differs from on-chain Bitcoin

If you've only done on-chain swaps (like Litecoin to Bitcoin or Ethereum to Bitcoin), Lightning breaks a few assumptions:

  • No static address — you use an invoice. On-chain you paste a reusable bc1 address. On Lightning you present a one-time invoice (a lnbc… string, BOLT11) that encodes a specific amount and an expiry. Pay it once and it's done.
  • Near-instant, near-free. Lightning payments settle in seconds for a tiny fee, versus ~10-minute confirmations and variable on-chain network fees.
  • Amounts are smaller. Lightning shines for small-to-moderate amounts; very large transfers are better on-chain because of channel capacity limits.
  • Liquidity matters. To receive over Lightning you need enough inbound capacity in your channels — custodial wallets handle this for you; some self-custodial ones may need a setup step.

What makes it work differently under the hood

  • Payment channels. Funds live in a 2-of-2 channel; balances update instantly off-chain and only hit the blockchain when the channel opens or closes.
  • Routing with HTLCs. Payments route across multiple channels using Hash Time-Locked Contracts — cryptographic conditions that guarantee either the whole payment completes or it safely fails and the funds return. There's no "stuck halfway."
  • Invoices and addresses. Besides BOLT11 invoices, you may see a Lightning Address (looks like an email, you@wallet.com) or an LNURL — conveniences layered on top of invoices. For a swap payout, an exact-amount invoice is what's usually required.

What you need: a Lightning wallet

You need a wallet that can generate invoices (to receive) and pay invoices (to send). Options fall into two camps:

  • Custodial Lightning wallets (e.g. Wallet of Satoshi, and other beginner apps) — easiest to start: liquidity is handled for you and receiving "just works," but the provider holds the keys, so it's not self-custody. Fine for small amounts.
  • Self-custodial Lightning wallets (e.g. Phoenix, Breez, or Muun as an on-chain+Lightning hybrid; Zeus if you run your own node) — you keep control, at the cost of a little channel/liquidity management. This keeps you aligned with true self-custody.

For receiving a swap payout, make sure your wallet has enough inbound liquidity for the amount — custodial wallets abstract this away; with some self-custodial wallets you may need to receive on-chain once first to open a channel.

How to do a Lightning swap on SwapRaven

Not every exchange supports Lightning, so first browse SwapRaven and pick a vetted, high-trust swap that offers a Lightning option for BTC. Then it works one of two ways:

Receiving BTC over Lightning (e.g. XMR → BTC-LN)

  1. Choose your pair and select Lightning as the Bitcoin payout method.
  2. Use a fixed-rate quote so the BTC amount is known up front — this matters because your invoice must be for an exact amount.
  3. In your Lightning wallet, generate an invoice for that exact amount and paste it into the swap.
  4. Send your deposit coin. When it confirms, the swap pays your invoice and the BTC lands in your wallet in seconds.

Sending BTC over Lightning (e.g. BTC-LN → XMR)

  1. Select Lightning as the deposit method and enter your payout address for the other coin.
  2. The swap shows you a Lightning invoice to pay.
  3. Pay it from your Lightning wallet — it settles instantly, and the swap sends your output coin.

There's also a related tool worth knowing: a submarine swap, which moves value between on-chain BTC and Lightning BTC specifically (useful for topping up or draining a channel) — the same invoice-based mechanics apply.

Best practices and caveats

  • Mind the invoice expiry. Invoices expire (often minutes). Generate it right before you need it, and complete the swap promptly; if it lapses, create a fresh one.
  • Match the exact amount. Because the invoice encodes a specific amount, use a fixed rate so the figure doesn't move while you set up — a floating rate can leave the invoice mismatched.
  • Check inbound liquidity before receiving a larger payout, or it can fail; custodial wallets remove this worry.
  • Respect amount limits. Keep Lightning swaps within sensible sizes; route very large amounts on-chain instead.
  • Weigh custodial vs self-custodial. Custodial Lightning is convenient but you trust the provider; for anything beyond pocket money, prefer a self-custodial wallet.
  • Reach exchanges through a vetted directory like SwapRaven rather than search ads, and verify invoices in your own wallet before paying.

Instant Bitcoin, the right way

Lightning swaps trade a static address and 10-minute waits for invoices and near-instant settlement — ideal for fast, low-fee Bitcoin in and out of your wallet. Get a Lightning wallet, use a fixed-rate quote so your invoice amount is exact, and keep liquidity in mind. When you're ready, SwapRaven helps you find a vetted, no-KYC exchange that supports Lightning: browse the directory, compare on trust and rate, and swap in or out over Lightning — straight to a wallet you control.

Comments (0)

No comments yet. Be the first to leave one.

Leave a comment

Please sign in to leave a comment.