diff options
| author | Adam Soltys <[email protected]> | 2026-06-29 07:09:15 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-06-29 07:09:15 -0700 |
| commit | 0baf4cf55daa1ed33c2b276f40a6fd8aa922ee34 (patch) | |
| tree | 746bcb733505ac3a4287d1a682e3d94b1bf39a26 /src/api.js | |
| parent | 2bc2c984c3e5b7e31d6452b9ec9df5bc5fd6e469 (diff) | |
| download | coinosv3-0baf4cf55daa1ed33c2b276f40a6fd8aa922ee34.tar.gz coinosv3-0baf4cf55daa1ed33c2b276f40a6fd8aa922ee34.zip | |
Send: pay a pasted Lightning invoice via an auto submarine swap (itemized cost)
Paste a bolt11 into the normal Send recipient field and Review now detects it and
routes through a Boltz submarine swap — no 'swap' concept surfaced. Split
startSubmarine into quoteSubmarine (POST + build-but-don't-broadcast the funding
tx) and fundQuotedSubmarine, so the review shows an itemized cost before
committing: Amount + Boltz fee + on-chain network fee = Total. Pay funds the
lockup; Boltz pays the invoice once it confirms.
Verified on regtest: a 60,000-sat invoice quotes to Amount 60,000 / Boltz 362 /
network 442 / Total 60,804, with a Pay button.
Lightning-address (LNURL) input + removing the standalone Swap tab are the
remaining pieces.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'src/api.js')
0 files changed, 0 insertions, 0 deletions
