Instant Loop Outs
Instant Loop Out is a form of submarine swap that uses pre-committed onchain funds to make Loop Outs immediately available once the offchain payment has been settled.
Instant Loop Out is a new Loop feature available from version 0.28
. It allows users to swap offchain to onchain funds immediately without waiting for onchain confirmations through the use of a pre-configured reservation in the form of an onchain commitment.. These funds can then be sent to any other onchain address within a set number of blocks within the creation of the reservation. Funds not sent out in that time frame are swept into your LND node’s internal wallet. These optimizations allow for better fee estimations, expression of time preference, and liquidity management.
Select users are able to take advantage of Instant Loop Outs. This service will be rolled out slowly and will require some manual intervention on both the server and client side.
Read more: Instant Submarine Swaps
Configuration: To make use of Instant Loop Outs, you must run loopd version 0.28
and add experimental=true
to your loopd.conf
file under ~/.loop/mainnet
or start Loop with the --experimental
flag.
To be invited, reach out to support@lightning.engineering and be prepared to share your L402, which you can obtain under id under loop listauth or in the Lightning Terminal dropdown menu. For now, reservations are done manually upon request and valid for 1000 blocks.
Once a reservation is made, it can be inspected with loop reservations list
The expiry
shows the block height at which the reservation can be swept back by the Loop service. The Loop Out should be completed before this block height.
As of now, Instant Loop Outs can only be completed with the full amount of the reservation. To perform an Instant Loop Out, run loop instantout
. You will see your available reservations and will be able to select one or multiple to complete.
To get a list of completed swaps, run loop listinstantouts
Running loop as part of litd? Read here on how to use the command line interface
Last updated