Skip to main content

How to Swap Lightning to On-Chain Bitcoin

To move bitcoin from Lightning to an on-chain address, go to lightning-swap.com/lightning-to-bitcoin, type the amount you'll pay over Lightning and your bitcoin address, check the quote, tap Create swap, and pay the Lightning invoice it shows from any Lightning wallet. Lightning Swap sends the bitcoin to your address as soon as the invoice is paid. We did it for real on November 30, 2026: we paid 35,000 sats from a Rizful wallet, and 34,402 sats were on their way to our own address seconds later. Sat is short for satoshi, which is the smallest unit of bitcoin. There are a hundred million satoshis in a bitcoin (What Is a Satoshi?).

Swap Lightning to on-chain bitcoin at lightning-swap.com →

Lightning Swap, Lightning to on-chain (as of November 30, 2026)
Fee0.5% of the amount you pay, plus a network fee for the on-chain transaction, both shown before you create the swap
Smallest swap10,000 sats
Largest swapshown on the form: 100,000,000 sats (1 BTC) on November 30, 2026, never more than 1 BTC
Addressesstarting with 1, 3, bc1q or bc1p (Bitcoin mainnet)
Time to pay the invoiceone hour
Refundsnone: the bitcoin goes to exactly the address you entered

Sources: Lightning Swap's Lightning to on-chain page (its form and its Questions), read on November 30, 2026. The quote on the page is the one that counts.

Why move bitcoin on-chain?​

Bitcoin moves on two networks:

  • Lightning is fast, for everyday payments: a payment arrives in seconds.
  • The blockchain (on-chain) is slower, but it's Bitcoin's own permanent record. A payment waits to be written into a block, and every on-chain payment pays a network fee.

That's where many people keep their savings: at an address of their own, in a desktop or hardware wallet. Lightning Swap takes a Lightning payment from any wallet and sends bitcoin to your address, as one on-chain payment.

If your sats are in Rizful, it has a swap of its own built in, Send On-Chain: How To Swap Lightning Funds to On-Chain.

What you need​

  • A Lightning wallet with at least 10,000 sats, plus its own fee to send. We paid from Rizful: free, in any browser, and you sign up with an email and a password. For your own node and your own channels, Alby Hub works too.
  • A bitcoin address of your own. Ours came from our Electrum wallet, a desktop wallet: bc1q7gp7z7jzjdcamfzza7xftpalw7qxjk5ny25adh.

Step 1: The amount and your address​

Go to lightning-swap.com/lightning-to-bitcoin. Type the amount you'll pay over Lightning, in sats. The form shows the limits: "Smallest: 10,000 sats. Largest: 100,000,000 sats." (November 30, 2026): up to one whole bitcoin. We typed 35000.

Amount you pay over Lightning, in sats: 35000
Amount you pay over Lightning, in sats: 35000

Then paste your bitcoin address.

Your bitcoin address, pasted
Your bitcoin address, pasted

Step 2: Check the quote​

The quote shows exactly what you get. Ours: "You pay 35,000 sats over Lightning. You receive 34,402 sats on-chain. Service fee 175 sats, network fee 423 sats." The service fee is 0.5%; the network fee pays for the on-chain transaction. On a small swap like this one, the network fee is most of the cost. "The amounts lock when you create the swap."

The quote: 35,000 sats in, 34,402 sats on-chain
The quote: 35,000 sats in, 34,402 sats on-chain

Step 3: Check the address, then Create swap​

"There are no refunds. We send to exactly this address. Check it before you create the swap, and again in your wallet before you pay." Then tap Create swap.

The no-refunds warning, then Create swap
The no-refunds warning, then Create swap

The swap page shows the Lightning invoice to pay: 35,000 sats, with an hour on the clock (TIME LEFT), its QR code, and the address it will send to, once more. Copy the invoice, or scan the QR code with your wallet. The page also gives you a swap token: keep it to yourself. It is your way back to this swap.

PAY OVER LIGHTNING 35,000 sats: copy the invoice
PAY OVER LIGHTNING 35,000 sats: copy the invoice

Step 4: Pay the invoice from your Lightning wallet​

Any Lightning wallet can pay it. In Rizful: tap Send, then Send Lightning, and paste the invoice.

Rizful's Send Lightning: paste the invoice
Rizful's Send Lightning: paste the invoice

Rizful reads the invoice and shows the amount: 35,000 satoshis ($20.55 that day). Tap Send Payment.

35,000 satoshis: Send Payment
35,000 satoshis: Send Payment

"Payment sent!" Our balance went from 90,077 sats to 54,901: the 35,000, plus 176 sats of Rizful's fee and routing ("Sending payments costs 0.1% plus Lightning routing fees", Rizful's FAQ).

Rizful's balance after the payment: 54,901 sats
Rizful's balance after the payment: 54,901 sats

Step 5: Lightning Swap sends the bitcoin on-chain​

The swap page follows it through: Payment received, Sending, Sent. Ours took under three seconds, and the page showed the transaction, "waiting for the first confirmation."

Sent on-chain: the transaction, waiting for its first confirmation
Sent on-chain: the transaction, waiting for its first confirmation

On mempool.space, the transaction paid 34,402 sats to our address.

mempool.space: 34,402 sats to our address
mempool.space: 34,402 sats to our address

Then it waits for a block. mempool.space expected about eleven minutes; it confirmed about three and a half minutes after it was sent, at 1:39 PM Pacific on November 30, 2026, in block 978,244.

mempool.space: confirmed
mempool.space: confirmed

The swap page says so too: "Confirmed. 34,402 sats sent to your address."

The swap page: Confirmed
The swap page: Confirmed

What our swap cost​

  • Lightning Swap: 598 sats of the 35,000: the service fee, 175 sats (0.5%), and the network fee, 423 sats, both on the quote before we created the swap.
  • Rizful, to send: 176 sats (0.1% plus Lightning routing).
  • Arrived: 34,402 sats at our own address.

For developers: the Lightning Swap API​

Lightning Swap has an API (API docs), with this same swap: Lightning to on-chain. In code it's one create call: BTCLN to BTC, the amount, your bitcoin address, and the answer is the Lightning invoice to pay. It needs an API key and secret from your Lightning Swap account.

# Pay sats over Lightning, get bitcoin at $BTC_ADDRESS
BODY=$(jq -nc --arg address "$BTC_ADDRESS" '{
type: "fixed",
fromCcy: "BTCLN",
toCcy: "BTC",
direction: "from",
amount: "0.00035000",
toAddress: $address
}')
SIGN=$(printf '%s' "$BODY" | openssl dgst -sha256 \
-hmac "$API_SECRET" | awk '{print $NF}')

curl -sS https://lightning-swap.com/api/v2/create \
-H "Content-Type: application/json; charset=UTF-8" \
-H "X-API-KEY: $API_KEY" \
-H "X-API-SIGN: $SIGN" \
-d "$BODY" > order.json
jq -r .data.from.address order.json

amount is in BTC and is what you pay over Lightning (0.00035000 is 35,000 sats). The invoice is valid for an hour, and there is no refund: once it is paid, the bitcoin goes to exactly toAddress. order.json also holds the order's id and token, which POST /api/v2/order needs to check the swap: keep them private. Or hand the whole API to a coding agent: Lightning Swap's agent directions, lightning-swap.com/api_docs.md, are written for Claude Code, Codex, Cursor or any coding agent.

The other swaps​

Lightning Swap's other swaps go the other way, into Lightning: SOL, USDC, USDT and ETH are centrally controlled coins, and swapping them to bitcoin is the safety move. This one is the last step: bitcoin at an address of your own.

Selling online?​

OpenReceive is the safe way to receive bitcoin and stablecoin payments for websites and apps: your customers' payments go straight to your own wallet, no approval necessary. From there, this swap moves them on-chain whenever you like.

FAQ​

How long does it take?​

The on-chain transaction is sent right after the invoice is paid, and then confirms like any other bitcoin transaction. Ours was sent under three seconds after the payment arrived and confirmed about three and a half minutes later.

What is the minimum and the maximum?​

From 10,000 sats. "The largest amount depends on the liquidity available at that moment and is shown on the form. It is never more than 1 BTC per swap" (Lightning Swap). On November 30, 2026, the form said 100,000,000 sats, one whole bitcoin.

Which addresses can I use?​

"Any standard Bitcoin mainnet address: legacy (starts with 1 or 3), SegWit (starts with bc1q) and Taproot (starts with bc1p)" (Lightning Swap).

Is there a refund?​

No. Once the invoice is paid, the bitcoin goes to exactly the address you entered. Check the address before you pay. An invoice that isn't paid just expires, and nothing is charged.

Can I swap from Rizful without Lightning Swap?​

Yes: Rizful's own Send On-Chain, step by step in How To Swap Lightning Funds to On-Chain.

Swap Lightning to on-chain bitcoin at lightning-swap.com →