@exodus/bitcoin-plugin 2.11.6 → 3.0.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,29 @@
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
+ ## [3.0.0](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-plugin@2.12.0...@exodus/bitcoin-plugin@3.0.0) (2026-07-10)
7
+
8
+
9
+ ### ⚠ BREAKING CHANGES
10
+
11
+ * **bitcoin:** broadcast btc via mempool space send path (#8349)
12
+
13
+ ### Features
14
+
15
+ * **bitcoin:** broadcast btc via mempool space send path ([#8349](https://github.com/ExodusMovement/assets/issues/8349)) ([ff44736](https://github.com/ExodusMovement/assets/commit/ff44736b7aae845e5261bd60c8583d5871adb8f2))
16
+
17
+
18
+
19
+ ## [2.12.0](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-plugin@2.11.6...@exodus/bitcoin-plugin@2.12.0) (2026-06-29)
20
+
21
+
22
+ ### Features
23
+
24
+
25
+ * feat: add optional getHistoricalBalance to asset api (#8247)
26
+
27
+
28
+
6
29
  ## [2.11.6](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-plugin@2.11.5...@exodus/bitcoin-plugin@2.11.6) (2026-06-11)
7
30
 
8
31
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/bitcoin-plugin",
3
- "version": "2.11.6",
3
+ "version": "3.0.0",
4
4
  "description": "Bitcoin plugin for Exodus SDK powered wallets",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -25,7 +25,7 @@
25
25
  "@exodus/asset-lib": "^5.0.0",
26
26
  "@exodus/assets": "^11.6.0",
27
27
  "@exodus/bip44-constants": "^195.0.0",
28
- "@exodus/bitcoin-api": "^4.15.5",
28
+ "@exodus/bitcoin-api": "^5.0.0",
29
29
  "@exodus/bitcoin-lib": "^2.4.2",
30
30
  "@exodus/bitcoin-meta": "^2.0.1",
31
31
  "@exodus/bitcoinjs": "^2.0.0",
@@ -59,5 +59,5 @@
59
59
  "type": "git",
60
60
  "url": "git+https://github.com/ExodusMovement/assets.git"
61
61
  },
62
- "gitHead": "da7dd92f4dfc0d7f81fd1ca0a95a6180ba1ec05a"
62
+ "gitHead": "1d7fd9da145bcfeb290441b3b8c72f9f5310eaca"
63
63
  }
@@ -17,6 +17,7 @@ import {
17
17
  getFeeAsyncFactory,
18
18
  getFeeEstimatorFactory,
19
19
  GetFeeResolver,
20
+ getHistoricalBalanceFactory,
20
21
  InsightAPIClient,
21
22
  isValidInscription,
22
23
  MempoolRestClient,
@@ -46,7 +47,6 @@ const assertMonitorConfig = ({
46
47
  monitorType,
47
48
  apiUrl,
48
49
  mempoolApiUrl,
49
- clarityApiUrl,
50
50
  mempoolWsUrl,
51
51
  configMinFeeRate,
52
52
  maxTrackedAddresses,
@@ -58,7 +58,6 @@ const assertMonitorConfig = ({
58
58
 
59
59
  if (monitorType === 'mempool') {
60
60
  assert(mempoolApiUrl, 'mempoolApiUrl is required when monitorType is mempool')
61
- assert(clarityApiUrl, 'clarityApiUrl is required when monitorType is mempool')
62
61
  assert(mempoolWsUrl, 'mempoolWsUrl is required when monitorType is mempool')
63
62
 
64
63
  assert(
@@ -82,7 +81,6 @@ export const createBitcoinAssetFactory =
82
81
  apiUrl: defaultApiUrl,
83
82
  mempoolApiUrl: defaultMempoolApiUrl,
84
83
  mempoolWsUrl: defaultMempoolWsUrl,
85
- clarityApiUrl: defaultClarityApiUrl,
86
84
  coinInfoNetwork,
87
85
  isTestnet = false,
88
86
  }) =>
@@ -93,7 +91,6 @@ export const createBitcoinAssetFactory =
93
91
  apiUrl: customApiUrl,
94
92
  mempoolApiUrl: customMempoolApiUrl,
95
93
  mempoolWsUrl: customMempoolWsUrl,
96
- clarityApiUrl: customClarityApiUrl,
97
94
  allowUnconfirmedRbfEnabledUtxos = false,
98
95
  ordinalChainIndex = DEFAULT_ORDINAL_CHAIN_INDEX,
99
96
  ordinalsEnabled = false,
@@ -114,7 +111,6 @@ export const createBitcoinAssetFactory =
114
111
  const apiUrl = customApiUrl || defaultApiUrl
115
112
  const mempoolApiUrl = customMempoolApiUrl || defaultMempoolApiUrl
116
113
  const mempoolWsUrl = customMempoolWsUrl || defaultMempoolWsUrl
117
- const clarityApiUrl = customClarityApiUrl || defaultClarityApiUrl
118
114
  assert(assetClientInterface, 'assetClientInterface is required')
119
115
  assert(asset, 'asset is required')
120
116
  assert(typeof ordinalChainIndex === 'number', 'ordinalChainIndex must be a number')
@@ -127,7 +123,6 @@ export const createBitcoinAssetFactory =
127
123
  monitorType,
128
124
  apiUrl,
129
125
  mempoolApiUrl,
130
- clarityApiUrl,
131
126
  mempoolWsUrl,
132
127
  configMinFeeRate,
133
128
  maxTrackedAddresses,
@@ -141,7 +136,6 @@ export const createBitcoinAssetFactory =
141
136
  monitorType === 'mempool'
142
137
  ? new MempoolRestClient({
143
138
  mempoolBaseURL: mempoolApiUrl,
144
- clarityBaseURL: clarityApiUrl,
145
139
  configMinFeeRate,
146
140
  })
147
141
  : new InsightAPIClient(apiUrl)
@@ -167,6 +161,7 @@ export const createBitcoinAssetFactory =
167
161
  family: ASSET_FAMILY.BITCOIN,
168
162
  feeMonitor: true,
169
163
  feesApi: true,
164
+ historicalBalance: ['bitcoin', 'bitcoinregtest', 'bitcointestnet'].includes(asset.name),
170
165
  moveFunds: true,
171
166
  multipleAddresses,
172
167
  nfts: ordinalsEnabled,
@@ -197,6 +192,8 @@ export const createBitcoinAssetFactory =
197
192
 
198
193
  const getBalances = getBalancesFactory({ feeData, allowUnconfirmedRbfEnabledUtxos })
199
194
 
195
+ const getHistoricalBalance = getHistoricalBalanceFactory({ assetClientInterface })
196
+
200
197
  const createTx = createTxFactory({
201
198
  getFeeEstimator,
202
199
  allowUnconfirmedRbfEnabledUtxos,
@@ -277,7 +274,6 @@ export const createBitcoinAssetFactory =
277
274
  apiUrl,
278
275
  mempoolApiUrl,
279
276
  mempoolWsUrl,
280
- clarityApiUrl,
281
277
  monitorType,
282
278
  maxTrackedAddresses,
283
279
  gapLimit,
@@ -356,6 +352,7 @@ export const createBitcoinAssetFactory =
356
352
  getActivityTxs,
357
353
  getBalanceForAddress,
358
354
  getBalances,
355
+ ...(features.historicalBalance && { getHistoricalBalance }),
359
356
  getDefaultAddressPath,
360
357
  getFee,
361
358
  getFeeAsync,
@@ -397,7 +394,6 @@ export const createBitcoinAssetFactory =
397
394
  apiUrl,
398
395
  mempoolApiUrl,
399
396
  mempoolWsUrl,
400
- clarityApiUrl,
401
397
  monitorType,
402
398
  configMinFeeRate,
403
399
  maxTrackedAddresses,
package/src/index.js CHANGED
@@ -7,13 +7,11 @@ export * from './create-asset.js' // for bitcoinregtest and bitcointestnet
7
7
  const apiUrl = 'https://bitcoin.a.exodus.io/insight/'
8
8
  const mempoolApiUrl = 'https://assets-gateway-clarity-api.a.exodus.io/assets/bitcoinmempool/'
9
9
  const mempoolWsUrl = 'wss://assets-gateway-clarity-bitcoin-mempool-ws-proxy.a.exodus.io/ws'
10
- const clarityApiUrl = 'https://assets-gateway-clarity-api.a.exodus.io/assets/bitcoin/insight/'
11
10
  export const createAsset = createBitcoinAssetFactory({
12
11
  asset,
13
12
  apiUrl,
14
13
  mempoolApiUrl,
15
14
  mempoolWsUrl,
16
- clarityApiUrl,
17
15
  })
18
16
  const assetPlugin = { createAsset }
19
17
  export default assetPlugin