lnbits-legend/lnbits/extensions/boltz
2022-10-18 08:49:27 +02:00
..
templates/boltz Boltz.exchange Extension (#922) 2022-08-30 12:51:17 +02:00
__init__.py Boltz.exchange Extension (#922) 2022-08-30 12:51:17 +02:00
boltz.py Improved SSE listeners (#865) 2022-10-04 09:51:47 +02:00
config.json Ruined extension layout 2022-08-31 19:04:07 +01:00
crud.py Boltz.exchange Extension (#922) 2022-08-30 12:51:17 +02:00
mempool.py Improved SSE listeners (#865) 2022-10-04 09:51:47 +02:00
migrations.py fix: use bigint for amounts in postgres (#1030) 2022-10-07 14:23:57 +02:00
models.py Boltz.exchange Extension (#922) 2022-08-30 12:51:17 +02:00
README.md Boltz.exchange Extension (#922) 2022-08-30 12:51:17 +02:00
tasks.py change boltz logs from warn to debug (#1057) 2022-10-18 08:49:27 +02:00
utils.py Boltz.exchange Extension (#922) 2022-08-30 12:51:17 +02:00
views_api.py Boltz.exchange Extension (#922) 2022-08-30 12:51:17 +02:00
views.py Boltz.exchange Extension (#922) 2022-08-30 12:51:17 +02:00

Swap on Boltz

providing trustless and account-free swap services since 2018. move IN and OUT of the lightning network and remain in control of your bitcoin, at all times.

usage

This extension lets you create swaps, reverse swaps and in the case of failure refund your onchain funds.

create normal swap

  1. click on "Swap (IN)" button to open following dialog, select a wallet, choose a proper amount in the min-max range and choose a onchain address to do your refund to if the swap fails after you already commited onchain funds.

create swap

  1. after you confirm your inputs, following dialog with the QR code for the onchain transaction, onchain- address and amount, will pop up.

pay onchain tx

  1. after you pay this onchain address with the correct amount, boltz will see it and will pay your invoice and the sats will appear on your wallet.

if anything goes wrong when boltz is trying to pay your invoice, the swap will fail and you will need to refund your onchain funds after the timeout block height hit. (if boltz can pay the invoice, it wont be able to redeem your onchain funds either).

create reverse swap

  1. click on "Swap (OUT)" button to open following dialog, select a wallet, choose a proper amount in the min-max range and choose a onchain address to receive your funds to. Instant settlement: means that LNbits will create the onchain claim transaction if it sees the boltz lockup transaction in the mempool, but it is not confirmed yet. it is advised to leave this checked because it is faster and the longer is takes to settle, the higher the chances are that the lightning invoice expires and the swap fails.

reverse swap

if this swap fails, boltz is doing the onchain refunding, because they have to commit onchain funds.

refund locked onchain funds from a normal swap

if for some reason the normal swap fails and you already paid onchain, you can easily refund your btc. this can happen if boltz is not able to pay your lightning invoice after you locked up your funds. in case that happens, there is a info icon in the Swap (In) List which opens following dialog.

refund

if the timeout block height is exceeded you can either press refund and lnbits will do the refunding to the address you specified when creating the swap. Or download the refundfile so you can manually refund your onchain directly on the boltz.exchange website. if you think there is something wrong and/or you are unsure, you can ask for help either in LNbits telegram or in Boltz Discord