From 85eca26f9141d339c2e58a1022d49e4007eb638f Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 24 Jun 2026 09:15:45 -0700 Subject: Add RBF fee bumping for unconfirmed sends MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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) --- src/api.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/api.js') diff --git a/src/api.js b/src/api.js index 23a1c2d..08f03b2 100644 --- a/src/api.js +++ b/src/api.js @@ -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; -- cgit v1.2.3