Skip to content

Commit f697e10

Browse files
authored
Merge pull request #207 from getAlby/feat/sendPaymentAsync
feat: add support for sendPaymentAsync to NWC WebLN provider
2 parents 30fc479 + 07b334b commit f697e10

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/webln/NostrWeblnProvider.ts

+11
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,17 @@ export class NostrWebLNProvider implements WebLNProvider, Nip07Provider {
298298
return result;
299299
}
300300

301+
async sendPaymentAsync(invoice: string): Promise<Record<string, never>> {
302+
await this.checkEnabled();
303+
304+
// don't wait for the response'
305+
this.client.payInvoice({ invoice });
306+
307+
this.notify("sendPaymentAsync", {});
308+
309+
return {};
310+
}
311+
301312
async keysend(args: KeysendArgs): Promise<SendPaymentResponse> {
302313
await this.checkEnabled();
303314

0 commit comments

Comments
 (0)