-
Notifications
You must be signed in to change notification settings - Fork 27
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
Method for opening a channel #2
Comments
I think the address of the node is needed as well, not just pubkey. Further, I have another idea: method |
You're totally right about needing the address, thanks for that note. My hope would be that that kind of logic would all be handled by the WebLN provider client. So you try to My thought of the purpose of a channel opening method would be more for the sake of opening a channel, not as a means to the end of making a payment. For instance I've seen some apps offer to open a channel back to you if you open one with them, or you could use it as a form of membership to an app (e.g. members must have a channel of X capacity to use a site.) |
I should have described my use case idea... It might happen that a visitor of a website doesn't want to wait for payment. E.g. if the workflow is 1. open the website, 2. do something for 30 minutes, pay with LN (plausible in case of e-shops, when you are searching for and selecting products to buy). If one starts opening the channel sooner, he might avoid waiting later. I'm not saying this is sure thing, nor do I develop anything that would need it. Just throwing this idea here. |
How about a method to connect out to a peer another node? Would simplify channel opening services to fall back to using webln for this that say don't support our thor service with lnurl |
That's definitely a good idea, and should be quite easy to implement. |
Proposal
Add a new method to the
WebLNProvider
calledopenChannel
that prompts the user to open a channel with a node. If they already had a channel open, the promise should resolve with the channel data immediately, without prompting the user.Questions
The text was updated successfully, but these errors were encountered: