🔁Swaps
How to swap bitcoin between your on-chain and lightning balances⚡
You can transfer bitcoin between your Alby Hub on-chain balance and your Alby Hub lightning balance through a swap, using its existing channels and receiving capacity. ⚡🔄
Overview:
Swap In: Transfer funds from your on-chain balance to your lightning balance.
Swap Out: Transfer funds from your lightning balance to your on-chain balance.
Swap In
Transfer funds from your on-chain balance to your lightning balance.
1. Navigate to "Wallet" and click on "Swap"

2. Enter a Swap Amount and click "Swap In"

3. Scan the QR using an external bitcoin wallet or use your Alby Hub funds
If you're sending from an external wallet make sure you send the exact amount specified, failing to do so will result in a swap failure followed by an immediate refund.

4. Wait for 1 on-chain confirmation
The swap is now initiated, and you'll see a "Waiting for confirmation" loading screen ⏳ Swap In needs 1 on‑chain confirmation (~10 minutes); once that's done, you'll receive an incoming payment notification! 🎉

5. Congrats. You successfully made a Swap In 🎉

Swap Out
Transfer funds from your lightning balance to your on-chain balance.
1. Navigate to "Wallet" and click on "Swap"

2. Enter a Swap Amount and click "Swap Out"
You can also select an external on-chain wallet. However, please double check the wallet address before proceeding to avoid loss of funds.

3. Wait for deposit and 2 on-chain confirmations
The swap is now initiated, and you'll see a "Paying lightning invoice" loading screen ⏳ In just a few seconds, the state should change to "Waiting for 2 on-chain confirmations".
This is because Swap Out is a two step process. First our swap provider locks up the funds, and as soon as the lightning invoice is paid, we broadcast another transaction to claim it. Once that's done, you should be receiving bitcoin to your on-chain wallet! 🎉
4. Congrats. You successfully made a Swap Out 🎉

Set up Auto-Swaps
If manual swap-outs proof useful to you, you can automate them to maintain receiving capacity without manual intervention.
For swap in and swap out, there will be a short waiting period while the transaction confirms on-chain ⏳. This usually takes a few minutes, depending on block confirmations. Sit tight, and your bitcoin will arrive soon! 😊
Also Checkout:
What happens if I lose access to my Hub while a swap is in progress?Last updated
Was this helpful?




