🔁Auto-Swaps
Auto-Swaps in Alby Hub allow you to automatically convert funds on Lightning into on-chain Bitcoin once a certain threshold is met.
Why you should use it
Reduce exposure to hot wallet balances
Automatically secure funds in a on‑chain wallet (Hub on-chain wallet or cold storage)
Maintain incoming liquidity without manual intervention
Use cases
Liquidity Management If you have very one-sided flows (mostly incoming, e.g. merchants) and want to maintain inbound liquidity
Security & Risk management Automatically sweep exceeding funds to cold storage
Example
Open the wallet page of Alby Hub and click the "Swaps" button
Switch to the "Swap out" tab and click the button "Auto-Swaps" at the top right
Configure auto-swap
Destination (bitcoin address or xpub)
Spending Balance Threshold (the swap will be triggered by exceeding this amount)
Swap Amount
Auto-Swaps will now be automatically performed, you'll see them show up in the transaction list

Threshold: 3M sats
Swap amount: 2.5M sats
Destination: Cold storage wallet (bitcoin address or xpub)
Every time Lightning balance exceeds 3M sats, a new auto-swap is attempted with 2.5M sent to a bitcoin on-chain address, keeping a minimum of 0.5M sats in the hub for day-to-day usage
Last updated