aboutsummaryrefslogtreecommitdiffstats
path: root/src/api.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-06-24 22:59:07 -0700
committerAdam Soltys <[email protected]>2026-06-24 22:59:07 -0700
commit4d1a9aea0f6b234dfe8eb36d398002ccea6a5680 (patch)
tree10eed0842669e73fef36888182fc556fb5e2ed15 /src/api.js
parentfabfff494c5c5a76ccfb0021f3a7c0fe6f6d9577 (diff)
downloadcoinosv3-4d1a9aea0f6b234dfe8eb36d398002ccea6a5680.tar.gz
coinosv3-4d1a9aea0f6b234dfe8eb36d398002ccea6a5680.zip
Allow gifting the whole balance (no-change sweep) via Max
A gift PSBT commits a sender change output (>= dust), so the entered amount always needed gift + 294 — making it impossible to gift the entire balance. Add a Max toggle on the gift form that builds a no-change sweep: all inputs SIGHASH_NONE, no change output, so the recipient gets the whole balance minus their claim fee. previewGift/buildClaimTx now treat a zero-output PSBT as zero change. A specific-amount gift that can't keep a dust change now points the user to Max instead of failing with a confusing 'not enough funds'. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'src/api.js')
0 files changed, 0 insertions, 0 deletions