Bitcoin4 min read
Lightning vs on-chain Bitcoin for a swap
Updated
Lightning is fast and cheap for smaller amounts; on-chain settles anything and everything. Here is how each behaves in a swap, and when to receive your BTC over Lightning.
On Ghostex, Lightning is for receiving Bitcoin only: after the swap runs, a Lightning payout usually lands within seconds, with no block confirmations to wait for. On-chain Bitcoin works in both directions, suits larger amounts, and a BTC deposit needs 2 confirmations, about 20 minutes at a 10-minute average block interval.
What is the difference between Lightning and on-chain Bitcoin?
Bitcoin can move two ways. On-chain means a normal Bitcoin transaction, recorded in a block and confirmed by miners. Lightning is a second layer built from payment channels on top of Bitcoin. Payments travel through those channels and usually settle within seconds, with the main chain used only to open and close them.
Both move the same asset, BTC, but they behave very differently, and the right choice depends on the amount and how quickly you need it.
How do Lightning and on-chain Bitcoin compare?
| Feature | On-chain Bitcoin | Lightning |
|---|---|---|
| Settlement layer | The Bitcoin blockchain: every transaction is recorded in a block | A second layer of payment channels; only channel opens and closes reach the chain |
| Confirmations Ghostex waits for | 2 | 0: Lightning payments are not confirmed in blocks |
| Typical time | About 20 minutes for 2 blocks, longer when blocks come slowly | Usually within seconds once a route is found |
| Fee model | A miner fee set by fee rate and transaction size; it rises when blocks are full | Routing fees charged by the nodes along the route, usually a fraction of a cent to a few cents |
| Payout network fee | Covered by Ghostex and already in your quote | Covered by Ghostex and already in your quote |
| Amount range | Any amount within the order limits, about $10 to $10,000,000 | The same order limits, but channel capacity caps what can route: a large payout may find no route |
| Direction on Ghostex | Send and receive | Receive only, for payouts |
| Payout destination you paste | A Bitcoin address starting with bc1, 1 or 3 | A BOLT11 invoice, a Lightning address, an LNURL or a BOLT12 offer |
On-chain is the settlement layer and what most wallets and exchanges use by default. Lightning is the fast lane for small to moderate payouts where speed matters more than size.
How does Lightning work on Ghostex?
A normal on-chain Bitcoin deposit reveals the address it came from, so if a swap cannot complete, the deposit can be returned there automatically. A Lightning payment does not expose a reusable sending address in the same way. There is no visible sender to refund to.
On Ghostex, Lightning works in one direction: you can receive a Bitcoin payout over Lightning, but Bitcoin deposits are sent on-chain, where the sending address is visible. The details are in how automatic refunds work.
For the payout itself, Lightning invoices follow the BOLT 11 standard, carry their own expiry time and can be issued with or without an amount. Ghostex checks four things before it accepts a Lightning destination:
- The format. Paste a BOLT11 invoice (
lnbc…), a Lightning address (name@domain), an LNURL (lnurl1…) or a BOLT12 offer (lno1…). Testnet invoices are rejected. - At least 45 minutes of validity. An invoice has to stay valid for the 30-minute rate lock plus 15 minutes. If the form says it expires too soon, create a new one in your wallet.
- An amount only on a fixed rate. An invoice with an amount works only on a fixed-rate order, and that amount must equal the quoted payout exactly.
- No amount on a floating rate. A floating order has no fixed payout until the swap runs. Use an invoice without an amount, or a Lightning address, LNURL or BOLT12 offer, which set the amount only when the payout is made.
How long does each take to settle?
On-chain, finality grows with confirmations. Each new block stacked on top of your transaction makes it harder to reverse, which is why Ghostex waits for 2 on a BTC deposit before it swaps. Bitcoin's block interval averages 10 minutes but varies. A block turns up within 30 minutes about 95% of the time, so 2 confirmations usually take around 20 minutes and occasionally much longer.
Lightning works differently. A routed payment settles inside payment channels rather than in a block, so it usually completes within seconds and there is no confirmation counter to watch.
The whole swap still typically takes 5 to 30 minutes, because the deposit has to confirm on its own network first. On an LTC to BTC swap, for example, that means 6 Litecoin confirmations, about 15 minutes, before the payout goes out. A SOL to BTC swap clears its 32 Solana confirmations in about 10 to 20 seconds, and an XRP to BTC swap confirms its XRP deposit in seconds. What stretches the on-chain wait is covered in how long an on-chain transaction takes.
Which should you use?
Receive over Lightning for smaller, time-sensitive payouts that should land within seconds. Use on-chain for larger amounts, when the receiving side only supports standard Bitcoin, and for any Bitcoin you send to Ghostex. Neither needs an account (here is how no-KYC swaps work), and the flat 0.48% fee is the same either way. If fees are your main concern, the wider picture is in network fees on a crypto swap.
When is Lightning the wrong choice?
Lightning has limits. Channels have a maximum capacity, so a very large payment may fail to find a route and is better sent on-chain. Not every wallet or service supports Lightning yet, so the receiving side has to accept it. And on Ghostex, Lightning is for payouts only, so the Bitcoin you send is always sent on-chain. If any of those is a problem, plain on-chain Bitcoin is the safer default.
How do you get a BTC payout over Lightning?
- Start a swap into Bitcoin, for example an ETH to BTC swap, and pick Bitcoin on the Lightning Network as the asset you receive.
- Choose the rate type first. An invoice with an amount needs a fixed rate and must match the quoted payout exactly. An invoice without an amount, a Lightning address, an LNURL or a BOLT12 offer works with either rate.
- Create an invoice that stays valid for at least 45 minutes, or paste a Lightning address, LNURL or BOLT12 offer.
- Send the deposit shown on your order within 30 minutes. An ETH deposit needs 12 confirmations before the swap runs, about 2.4 minutes; for USDT to BTC over Lightning, a TRC20 deposit needs 20 Tron confirmations, about 1 minute.
Sending Bitcoin instead? A BTC deposit is always on-chain, as in a BTC to ETH swap or a BTC to XMR swap. The supported assets page shows send and receive availability for every asset, and the FAQ lists confirmations per network.
This guide is general information about how crypto swaps work, not financial advice. Product facts follow the Terms and the Privacy policy.
Keep reading
More guides
Network fees on a swap, explained
The fee to send a deposit, the fee to receive a payout, and the flat 0.48% exchange fee. Here is who charges what, and how to keep the network cost down.
Read the guideHow to swap Bitcoin to Monero privately
What a BTC to XMR swap hides and what stays public on each chain, which Monero address to use and when a refund address is needed.
Read the guideHow automatic refunds work
If a swap cannot complete, the deposit goes back on its own. Here is where it goes, how much you get back, and when a refund address is required.
Read the guide