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

[Feature] Add webln.sendMultiPayments method #2998

Open
yukibtc opened this issue Jan 22, 2024 · 1 comment
Open

[Feature] Add webln.sendMultiPayments method #2998

yukibtc opened this issue Jan 22, 2024 · 1 comment
Labels
idea A feature idea that needs to be more specification

Comments

@yukibtc
Copy link

yukibtc commented Jan 22, 2024

Feature description

Hi, would be awesome to have a method in WebLN to pay multiple invoices with one prompt request. This can improve the a lot the UX of nostr zap splits without the need of set a budget.

Describe the solution

Add webln.sendMultiPayments(invoices: string[]) method. Internally: decode the invoices, calculate the total amount and prompt a payment request showing the total amount (an eventually a badge/description saying that is a multi-payment request).

Describe alternatives

No response

Additional context

No response

Are you working on this?

None

@yukibtc yukibtc added the idea A feature idea that needs to be more specification label Jan 22, 2024
@rolznz
Copy link
Contributor

rolznz commented Jan 23, 2024

Hi @yukibtc

We are currently working on this in the NWC spec, so maybe it can then be proposed to be added to WebLN.

getAlby/js-sdk#190

Specifically the response needs to be reviewed because with this endpoint there is possibility of some payments succeeding and some failing. Any feedback there would be appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea A feature idea that needs to be more specification
Projects
None yet
Development

No branches or pull requests

2 participants