Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically setup LNBits wallet if none is configured #22

Open
ThomasFarstrike opened this issue Aug 5, 2024 · 0 comments
Open

Automatically setup LNBits wallet if none is configured #22

ThomasFarstrike opened this issue Aug 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ThomasFarstrike
Copy link

Currently, to get a working device, the user has to create an LNBits lightning wallet (on their own server, or the "Lightning Piggy demo server":https://demo.lnpiggy.com/ or the "LNBits demo server":demo.lnbits.com or a third party's server). Then they have to enable the right extension(s), configure the extension(s), copy the right API keys and paste them into their device's configuration.

As this is quite a hassle, it would be nice if the device itself does all of these steps, using LNBits API calls, if it notices that none of the relevant settings have been configured.

After creating the wallets and setting itself up, the device should show the "private LNBits URL":https://demo.lnpiggy.com/wallet?wal=abcde981723981723981723981723&usr=abcde981723981723981723981723 (also as a QR code) that contains the wallet ID and user ID, and ask the user to save it, to allow them to access their LNBits wallet from any webbrowser, even if the device has an issue.

To be able to show the private LNBits URL with the wallet and user ID, the device should save them locally into the configuration.

The LNBits API calls that would be required would be:

  • create lnbits wallet (resulting in the wallet ID, user ID, Invoice/read key, to be saved locally)
  • activate lnurlp "pay links" extension
  • call "new pay link" (resulting in the LNURLp, to be saved locally)
@ThomasFarstrike ThomasFarstrike changed the title Automatically setup LNBits if none is configured Automatically setup LNBits wallet if none is configured Aug 5, 2024
@ThomasFarstrike ThomasFarstrike added the enhancement New feature or request label Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant