Skip to content

Allowance with LNURL-withdraw advanced links #24

@motorina0

Description

@motorina0

Problem

  • the user might spend more than it wants on a particular site
  • there is no way for the user to set a limit on how much and how often it spends
  • the user is prompted to confirm each invoice, even if it trusts the particular site

Solution

  • use LNURL-w to configure "allowances" for sites
  • if an allowance is configured for a site then the extension "pulls" money from that allowance WITHOUT asking the user
    • only a progress dialog is shown
  • if one of the LNURL-w limitations is met (count, min/max values, delay) it shows an error message
    • the user can take action and update the limitations (eg: max withdraw amount)

Configure LNURL-withdraw

  • the title of the withdraw link must be the exact name of the domain including the protocol (https://htlc.me)
    • trailing slash is NOK: https://htlc.me/ <-- bad
  • image

Pay a BOLT 11 invoice

  • click on a bolt11 link or "cut it out" from an image
    • no confirmation required, progress dialog shown
  • LNURL-pay not supported at the moment
  • image

Check Transactions List

  • the memo comes from the client invoice itself
  • image

That's it!

See negative cases below

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions