diff options
| author | Adam Soltys <[email protected]> | 2026-06-24 09:15:45 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-06-24 09:15:45 -0700 |
| commit | 85eca26f9141d339c2e58a1022d49e4007eb638f (patch) | |
| tree | 755e852934528e0c8fb114545f6b39a803ce6c90 /src/api.js | |
| parent | 17acf5ec80a0c0b0acc44a6a8373e154c68d4748 (diff) | |
| download | coinosv3-85eca26f9141d339c2e58a1022d49e4007eb638f.tar.gz coinosv3-85eca26f9141d339c2e58a1022d49e4007eb638f.zip | |
Add RBF fee bumping for unconfirmed sends
- Signal opt-in RBF (BIP125, sequence 0xfffffffd) on all new sends so
they're replaceable.
- "Bump fee" on an unconfirmed sent tx (its detail view): rebuilds the
same inputs + recipient outputs at the Priority rate, taking the extra
fee from the change output (pulling in a confirmed coin if change can't
cover it), re-signs, and routes to a "Replace with a higher fee?"
confirmation showing old → new fee before broadcasting.
- New keys translated into all 19 locales.
Honest scope: P2A/TRUC/package-relay are L2/pre-signed-tx + node-relay
features that don't apply to a single-sig wallet broadcasting single txs
via public explorers, so they're intentionally out. CPFP (for receives /
unbumpable sends) is a possible follow-up.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'src/api.js')
| -rw-r--r-- | src/api.js | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -200,6 +200,11 @@ export class Api { return this.#get(`/address/${address}/txs`); } + // Full transaction (vin with prevouts, vout, status) — used for fee bumping. + getTx(txid) { + return this.#get(`/tx/${txid}`); + } + async feeRates() { for (const host of this._hosts) { if (host.cooldownUntil > Date.now()) continue; |
