@exodus/bitcoin-api 4.15.0 → 4.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [4.15.1](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-api@4.15.0...@exodus/bitcoin-api@4.15.1) (2026-05-19)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+
12
+ * fix: block btc empty-output transactions (#8086)
13
+
14
+
15
+
6
16
  ## [4.15.0](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-api@4.14.7...@exodus/bitcoin-api@4.15.0) (2026-05-18)
7
17
 
8
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/bitcoin-api",
3
- "version": "4.15.0",
3
+ "version": "4.15.1",
4
4
  "description": "Bitcoin transaction and fee monitors, RPC with the blockchain node, other networking code.",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -63,5 +63,5 @@
63
63
  "type": "git",
64
64
  "url": "git+https://github.com/ExodusMovement/assets.git"
65
65
  },
66
- "gitHead": "266396ec25f5aa6ce87887d0df7f0e882e83f1aa"
66
+ "gitHead": "242a4bda6f833d8a5bd6d08bfaea5dcde118eaeb"
67
67
  }
@@ -261,6 +261,16 @@ function createChangeOutput({ selectedUtxos, totalAmount, fee, replaceTx, change
261
261
  return null
262
262
  }
263
263
 
264
+ function assertTransactionHasOutputs({ outputs, bumpTxId }) {
265
+ if (outputs.length > 0) return
266
+
267
+ throw new Error(
268
+ bumpTxId
269
+ ? `Cannot bump transaction ${bumpTxId}: no spendable output after fees`
270
+ : 'Cannot create transaction without outputs'
271
+ )
272
+ }
273
+
264
274
  async function createUnsignedTx({
265
275
  inputs,
266
276
  outputs,
@@ -480,6 +490,8 @@ const transferHandler = {
480
490
  changeAddress: context.changeAddress,
481
491
  })
482
492
 
493
+ assertTransactionHasOutputs({ outputs, bumpTxId })
494
+
483
495
  // Track our own outputs and their purposes. Today this is only the change
484
496
  // output; in the future we may add self-send primaries when applicable.
485
497
  const outputAddressPurposesMap = Object.create(null)