lnbits-legend/lnbits/extensions/withdraw
2021-04-10 17:37:48 -03:00
..
static/js Moved amount update to cb in lnurlw 2020-11-30 22:03:20 +00:00
templates/withdraw edited api 2021-03-17 19:32:37 +00:00
__init__.py remove exception to black line-length and reformat. 2021-03-24 00:40:32 -03:00
config.json Update config.json 2020-04-18 01:39:10 +01:00
crud.py fix: account for withdraw link not found on two places. 2021-03-27 21:26:56 -03:00
lnurl.py catch errors in multiple places that might be destroying the async flow and causing lnbits to die silently. 2021-04-10 17:37:48 -03:00
migrations.py remove exception to black line-length and reformat. 2021-03-24 00:40:32 -03:00
models.py remove exception to black line-length and reformat. 2021-03-24 00:40:32 -03:00
README.md chore: remove pending macaroon mentions 2020-04-21 23:22:01 +02:00
views_api.py remove exception to black line-length and reformat. 2021-03-24 00:40:32 -03:00
views.py remove exception to black line-length and reformat. 2021-03-24 00:40:32 -03:00

LNURLw

LNURL withdraw is a very powerful tool and should not have his use limited to just faucet applications. With LNURL withdraw, you have the ability to give someone the right to spend a range, once or multiple times. This functionality has not existed in money before. https://github.com/btcontract/lnurl-rfc/blob/master/spec.md#3-lnurl-withdraw

With this extension to can create/edit LNURL withdraws, set a min/max amount, set time (useful for subscription services)

lnurl

API endpoint - /withdraw/api/v1/lnurlmaker

Easily fetch one-off LNURLw

curl -H "Content-type: application/json" -X POST https://YOUR-LNBITS/withdraw/api/v1/lnurlmaker -d '{"amount":"100","memo":"ATM"}' -H "X-Api-Key: YOUR-WALLET-ADMIN-KEY"