lnbits-legend/lnbits/extensions/scrub
2022-06-21 15:33:23 +01:00
..
static/js pay lnurl 2022-06-21 10:31:18 +01:00
templates/scrub create scrub link 2022-06-17 11:41:12 +01:00
__init__.py initial 2022-06-07 11:04:34 +01:00
config.json init 2022-05-17 20:27:52 +01:00
crud.py pay lnurl 2022-06-21 10:31:18 +01:00
migrations.py bits bobs 2022-05-19 11:39:59 +01:00
models.py scrubbing works, duplicated code warning 2022-06-21 15:33:23 +01:00
README.md init 2022-05-17 20:27:52 +01:00
tasks.py scrubbing works, duplicated code warning 2022-06-21 15:33:23 +01:00
views.py initial 2022-06-07 11:04:34 +01:00
views_api.py pay lnurl 2022-06-21 10:31:18 +01:00

scrub

Create a static QR code people can use to pay over Lightning Network

LNURL is a range of lightning-network standards that allow us to use lightning-network differently. An LNURL-pay is a link that wallets use to fetch an invoice from a server on-demand. The link or QR code is fixed, but each time it is read by a compatible wallet a new invoice is issued by the service and sent to the wallet.

Wallets supporting LNURL

Usage

  1. Create an scrub (New Scrub link)
    create scrub

    • select your wallets
    • make a small description
    • enter amount
    • if Fixed amount is unchecked you'll have the option to configure a Max and Min amount
    • you can set the currency to something different than sats. For example if you choose EUR, the satoshi amount will be calculated when a user scans the scrub
    • You can ask the user to send a comment that will be sent along with the payment (for example a comment to a blog post)
    • Webhook URL allows to call an URL when the scrub is paid
    • Success mesage, will send a message back to the user after a successful payment, for example a thank you note
    • Success URL, will send back a clickable link to the user. Access to some hidden content, or a download link
  2. Use the shareable link or view the scrub you just created
    scrub

    • you can now open your scrub and copy the LNURL, get the shareable link or print it
      view scrub