aboutsummaryrefslogtreecommitdiffstats
path: root/dns/README.md
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-11-07 13:46:30 -0700
committerAdam Soltys <[email protected]>2026-11-07 13:46:30 -0700
commit912944d6931065dc4e06d57dd28883a96f149057 (patch)
tree4c0fea9863a77bd543a449cf6bbf5fd1ff988f02 /dns/README.md
parent2fef93f3f9bf646d66625deb09c8b5b278a32cae (diff)
downloadcoinosv3-server-912944d6931065dc4e06d57dd28883a96f149057.tar.gz
coinosv3-server-912944d6931065dc4e06d57dd28883a96f149057.zip
names: prepaid Lightning withdraw links (LNURL-withdraw, LUD-03). "Do we have lnurl withdraw links somewhere? can we add them?" → "Prepaid" (Adam, 2026-11-07). A self-custodial wallet asleep in a pocket can't answer a withdraw link days later, so the creator pays the whole amount up front (POST /withdraw/new → a CLN invoice for sat × uses; the settle loop, or the creator's POST /withdraw/funded checking listinvoices, opens the link) and this service pays each claim out of that reserve: GET /w/<id> serves the withdrawRequest (up to the per-claim amount, never past what's left), GET /w/<id>/cb?k1&pr pays it — a plain pay with the routing fee capped at max(10 sat, 1%) and borne here, or, for an invoice on this very node (any coinos wallet's Lightning receive), round the float top-up's circular route, read back with waitsendpay. The reserve is taken before a payment starts and handed back only on a definite failure; an unknown outcome stays reserved for a minute-ly listsendpays check. No invoice is ever paid twice, one claim per link at a time. The creator lists theirs (GET /withdraw/mine) and takes back the remainder with an invoice of their own (POST /withdraw/reclaim), which closes the link first and reopens it if that payment fails. All NIP-98 by the wallet key. Mainnet and (play money) mutinynet, on the hat stand's nodes. names/withdraw.test.js covers it against a fake node
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VMan6Ts5Tktega8VbLg31q
Diffstat (limited to 'dns/README.md')
0 files changed, 0 insertions, 0 deletions