Skip to content

[Feature] Add webln.sendMultiPayments method #2998

@yukibtc

Description

@yukibtc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    ideaA feature idea that needs to be more specification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions