Conversation
|
@im-adithya this change removes the WebLN provider stuff, which I am not sure is what we want. What I meant is to add a bit of extra documentation on how to use the NWCClient directly CC @bumi |
This PR only adds NWCClient documentation (and pushes WebLN provider to the bottom) can you check the diffs again? |
|
|
||
| ### NWCClient | ||
|
|
||
| ### Options |
There was a problem hiding this comment.
Can you fix the headers, they should not all be ###
| const response = await nwc.payInvoice({ invoice }); | ||
| ``` | ||
|
|
||
| That's it! Unlike WebLN, you don't even have to enable to connect to the relay. |
There was a problem hiding this comment.
Do you think people reading this understand this? and this is not the reason to use or not use WebLN.
|
When does the user want to use WebLN vs the NWCClient directly, and do they know why? and then we should plan how we can easily communicate that to the user and structure the README For example, if you're building an app that already uses webln integrated, it makes more sense to use the NostrWebLNClient (Or Bitcoin Connect?) Alternatively, if you only support NWC (e.g. something like ZapPlanner where you have async payments on your backend) maybe it makes sense to use the NWCClient directly. |
|
Closing in favor of #344 which splits up the documentation |
Closes #228