🔁Swaps

Swap bitcoin between on-chain and lightning ⚡

You can transfer bitcoin between your Alby Hub on-chain balance and your Alby Hub spending balance through a swap, using its existing channels and receiving capacity. ⚡🔄

Overview:

  1. Swap In: Transfer funds from your on-chain balance to your spending balance.

  2. Swap Out: Transfer funds from your spending balance to your on-chain balance.

Swap In

Transfer funds from your on-chain balance to your spending 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

4. Wait for one 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 spending balance to your on-chain balance.

1. Navigate to "Wallet" and click on "Swap"

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

3. Wait for deposit and two 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 sats to your on-chain wallet! 🎉

Swap Out screen step 1: Waiting for deposit
Swap Out screen step 2a: Waiting for 2 on-chain confirmations
Swap Out screen step 2b: Waiting for on-chain confirmation

4. Congrats. You successfully made a Swap Out 🎉


Also Checkout:

Last updated