Improve Lightning payment UX

This commit is contained in:
Alex Gleason committed 2025-09-19 18:26:24 -05:00
1 parent 62cd515a9e
commit 1d88ca84f2
5 files changed
+292 -16

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
declare global {
interface Window {
webln?: {
enable(): Promise<void>;
sendPayment(paymentRequest: string): Promise<{
preimage: string;
}>;
makeInvoice(args: {
amount?: number;
defaultMemo?: string;
}): Promise<{
paymentRequest: string;
}>;
signMessage(message: string): Promise<{
message: string;
signature: string;
}>;
verifyMessage(signature: string, message: string): Promise<void>;
getInfo(): Promise<{
node: {
alias: string;
pubkey: string;
color?: string;
};
}>;
};
}
}
export {};