From 73e38dd781380cf6bf8186531efb6d02fe9def05 Mon Sep 17 00:00:00 2001 From: benthecarman <15256660+benthecarman@users.noreply.github.com> Date: Sat, 9 Mar 2024 12:21:32 +0000 Subject: [PATCH] Add text/identifier to lnurl response --- src/utils/lnurl.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/lnurl.ts b/src/utils/lnurl.ts index e252c90..5aabcfb 100644 --- a/src/utils/lnurl.ts +++ b/src/utils/lnurl.ts @@ -8,6 +8,7 @@ export function createLnurlResponse(username: string) { minSendable: Number(process.env.LNURL_MIN_AMOUNT), metadata: JSON.stringify([ ["text/plain", "A cashu lightning address... Neat!"], + ["text/identifier",`${username}@cashu-address.com`] ]), tag: "payRequest", allowsNostr: true, @@ -20,6 +21,7 @@ export function createLnurlResponse(username: string) { minSendable: 10000, metadata: JSON.stringify([ ["text/plain", "A cashu lightning address... Neat!"], + ["text/identifier",`${username}@cashu-address.com`] ]), tag: "payRequest", };