From add3ad93ff37f1daaedab5788f00663be299555c Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 30 Jul 2026 08:51:36 -0700 Subject: bolt12 zaps: pay offers, NWC pay/receive, per-user offers, NIP-44 - sendLightning fetches an invoice from lno1 offers (payer_note passthrough for NIP-177 zap intents) and pays it through the existing bolt12 path - NWC: new nwc#2 pay/receive methods (BIP-321 URIs, payer proofs stubbed until CLN 26.06 createproof), nip44_v2 alongside nip04 with per-request scheme detection, dual 23196/23197 notifications, 13194 refreshed when its content or encryption tag goes stale - standing per-user bolt12 offer via GET /offer; incoming bolt12 payments record invreq_payer_note as memo - parse/fetchinvoice routes handle offers; zap display parses kind 9736 receipts (amount tag + embedded intent) and drops a call to a sync() helper that never existed Co-Authored-By: Claude Fable 5 --- index.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'index.ts') diff --git a/index.ts b/index.ts index cbe08b3a..5f468454 100644 --- a/index.ts +++ b/index.ts @@ -91,6 +91,7 @@ app.post("/send/:lnaddress/:amount", auth, payments.lnaddress); app.post("/send", auth, payments.internal); app.post("/replace", auth, payments.replace); app.get("/decode/:bolt11", payments.decode); +app.get("/offer", auth, payments.offer); app.post("/fetchinvoice", payments.fetchinvoice); app.get("/square/connect", auth, square.connect); -- cgit v1.2.3