@exodus/bitcoin-api 5.1.3 → 5.2.0

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,15 @@
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
+ ## [5.2.0](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-api@5.1.3...@exodus/bitcoin-api@5.2.0) (2026-11-23)
7
+
8
+
9
+ ### Features
10
+
11
+ * report fee accuracy from getFeeAsync ([#9396](https://github.com/ExodusMovement/assets/issues/9396)) ([802d833](https://github.com/ExodusMovement/assets/commit/802d83377125651b00c882ca7165ab2ee99712a5))
12
+
13
+
14
+
6
15
  ## [5.1.3](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-api@5.1.2...@exodus/bitcoin-api@5.1.3) (2026-11-20)
7
16
 
8
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/bitcoin-api",
3
- "version": "5.1.3",
3
+ "version": "5.2.0",
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",
@@ -60,5 +60,5 @@
60
60
  "type": "git",
61
61
  "url": "git+https://github.com/ExodusMovement/assets.git"
62
62
  },
63
- "gitHead": "542f0821665b4771aeecab4ce2a2e9614a2515c1"
63
+ "gitHead": "30213678c153e881cde13ebf69c9afc09564bee2"
64
64
  }
@@ -1,8 +1,13 @@
1
1
  import assert from 'minimalistic-assert'
2
2
 
3
- export const getFeeAsyncFactory = ({ createTx, assetClientInterface }) => {
3
+ export const getFeeAsyncFactory = ({
4
+ createTx,
5
+ assetClientInterface,
6
+ fallbackFeeAccuracy = 'max',
7
+ }) => {
4
8
  assert(createTx, 'createTx is required')
5
9
  assert(assetClientInterface, 'assetClientInterface is required')
10
+ assert(['max', 'estimate'].includes(fallbackFeeAccuracy), 'invalid fallbackFeeAccuracy')
6
11
 
7
12
  return async ({ asset, walletAccount, toAddress, amount, isSendAll, ...extraCreateTxParams }) => {
8
13
  assert(asset, 'asset is required')
@@ -20,7 +25,7 @@ export const getFeeAsyncFactory = ({ createTx, assetClientInterface }) => {
20
25
  ...extraCreateTxParams,
21
26
  })
22
27
 
23
- return { fee }
28
+ return { fee, feeAccuracy: 'exact' }
24
29
  } catch {
25
30
  const { customFee, taprootInputWitnessSize } = extraCreateTxParams
26
31
  const assetName = asset.name
@@ -40,7 +45,7 @@ export const getFeeAsyncFactory = ({ createTx, assetClientInterface }) => {
40
45
  receiveAddress: toAddress,
41
46
  taprootInputWitnessSize,
42
47
  })
43
- return { fee }
48
+ return { fee, feeAccuracy: fallbackFeeAccuracy }
44
49
  }
45
50
  }
46
51
  }