lnbits-legend/lnbits/extensions/withdraw
2021-03-17 17:55:00 +00:00
..
static/js Moved amount update to cb in lnurlw 2020-11-30 22:03:20 +00:00
templates/withdraw Added api docs 2021-03-17 17:55:00 +00:00
__init__.py withdraw: fix incorrect setting of used+1. 2020-11-21 23:20:27 -03:00
config.json Update config.json 2020-04-18 01:39:10 +01:00
crud.py Bug 2021-03-17 16:56:23 +00:00
lnurl.py Added unique hash check to lnurlw 2020-11-30 22:27:53 +00:00
migrations.py Added hash check to db 2021-03-17 15:38:32 +00:00
models.py Should work 2021-03-17 16:33:12 +00:00
README.md chore: remove pending macaroon mentions 2020-04-21 23:22:01 +02:00
views.py black format 2021-03-03 13:59:31 +00:00
views_api.py Should work 2021-03-17 16:33:12 +00: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"