@exodus/ethereum-api 10.1.4 → 10.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
+ ## [10.2.0](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@10.1.4...@exodus/ethereum-api@10.2.0) (2026-10-20)
7
+
8
+
9
+ ### Features
10
+
11
+ * **ethereum-api:** report the signed tx hash before broadcast ([#9019](https://github.com/ExodusMovement/assets/issues/9019)) ([96ae8c0](https://github.com/ExodusMovement/assets/commit/96ae8c0605181207279197d070a31a965f6f616c))
12
+
13
+
14
+
6
15
  ## [10.1.4](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@10.1.3...@exodus/ethereum-api@10.1.4) (2026-10-17)
7
16
 
8
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/ethereum-api",
3
- "version": "10.1.4",
3
+ "version": "10.2.0",
4
4
  "description": "Transaction monitors, fee monitors, RPC with the blockchain node, and other networking code for Ethereum and EVM-based blockchains",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -65,5 +65,5 @@
65
65
  "type": "git",
66
66
  "url": "git+https://github.com/ExodusMovement/assets.git"
67
67
  },
68
- "gitHead": "c2422cdc47034c6b0e497e95546a8b18885a792b"
68
+ "gitHead": "36fabbe45fe45079016a2652bd7fee0df025d8c3"
69
69
  }
@@ -11,7 +11,13 @@ const txSendFactory = ({ assetClientInterface, createTx }) => {
11
11
  assert(assetClientInterface, 'assetClientInterface is required')
12
12
  assert(createTx, 'createTx is required')
13
13
 
14
- return async ({ asset, walletAccount, unsignedTx: providedUnsignedTx, ...legacyParams }) => {
14
+ return async ({
15
+ asset,
16
+ walletAccount,
17
+ unsignedTx: providedUnsignedTx,
18
+ onTxSigned,
19
+ ...legacyParams
20
+ }) => {
15
21
  const baseAsset = asset.baseAsset
16
22
 
17
23
  const { unsignedTx } = providedUnsignedTx
@@ -36,6 +42,8 @@ const txSendFactory = ({ assetClientInterface, createTx }) => {
36
42
  unsignedTx,
37
43
  walletAccount,
38
44
  })
45
+ // A caller that must find the tx after a lost broadcast response learns its hash before the network sees it.
46
+ await onTxSigned?.({ txId })
39
47
 
40
48
  try {
41
49
  await baseAsset.api.broadcastTx(rawTx.toString('hex'))
@@ -90,6 +98,7 @@ const txSendFactory = ({ assetClientInterface, createTx }) => {
90
98
  unsignedTx,
91
99
  walletAccount,
92
100
  }))
101
+ await onTxSigned?.({ txId })
93
102
 
94
103
  try {
95
104
  await baseAsset.api.broadcastTx(rawTx.toString('hex'))