Author: Giovanni P 2019-01-21 11:40:22
Published on: 2019-01-21T11:40:22+00:00
On the Lightning-dev mailing list, Francis Pouliot raised a user experience issue regarding withdrawing funds from a service via Lightning Network (LN). He described a scenario where a user buys Bitcoin with fiat on his app and opts to be paid out via LN rather than on-chain BTC. The app then instructs the user to create an invoice with the following details: msatoshi and description. However, there is no mechanism for the app to verify if the user has created the invoice correctly, leading to potential errors or typos. Rusty Russell replied that there's a missing "give me an invoice" API for this type of push payment and suggested using an lninv URL with a description, minimum and maximum amounts, and submission URL. Ideally, the browser would reach out to the wallet to get an invoice and do the submission itself, but he wasn't sure how that part of the stack works. The discussion centered around improving user experience when it comes to withdrawing funds from a service via LN. The current process lacks a mechanism for verifying if the user has created the invoice correctly, which can lead to errors or typos. Rusty Russell suggested using an lninv URL with a description, minimum and maximum amounts, and submission URL to alleviate this issue. However, he acknowledged that he was unsure about how the browser reaching out to the wallet to get an invoice and do the submission itself would work in practice.
Updated on: 2023-06-02T17:03:48.654128+00:00