aboutsummaryrefslogtreecommitdiffstats
path: root/lib/lightning.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-03-27 23:41:08 -0700
committerAdam Soltys <[email protected]>2026-03-27 23:41:08 -0700
commitef06f2eb48581c201e62fc2cde27b106e898e54d (patch)
tree67a8991ffdba15cd231dbbc5890f56ac3a7511f1 /lib/lightning.ts
parent13372a9ee10a00ce3e17676198e97d2991b4855d (diff)
downloadcoinos-server-ef06f2eb48581c201e62fc2cde27b106e898e54d.tar.gz
coinos-server-ef06f2eb48581c201e62fc2cde27b106e898e54d.zip
lnurl proxy
Diffstat (limited to 'lib/lightning.ts')
-rw-r--r--lib/lightning.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/lightning.ts b/lib/lightning.ts
index 0de5aa6b..2da1ab02 100644
--- a/lib/lightning.ts
+++ b/lib/lightning.ts
@@ -137,6 +137,7 @@ export async function replay(index) {
description,
amount_received_msat,
payment_preimage: preimage,
+ paid_at,
} = inv;
const received = Math.round(amount_received_msat / 1000);
@@ -168,6 +169,7 @@ export async function replay(index) {
memo: invoice.memo,
ref: preimage,
type: bolt12 ? PaymentType.bolt12 : PaymentType.lightning,
+ created: paid_at ? paid_at * 1000 : undefined,
});
return p;