@exodus/solana-api 3.27.0 → 3.27.2

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,24 @@
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.27.2](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.27.1...@exodus/solana-api@3.27.2) (2026-01-12)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+
12
+ * fix: check SOL token txs signers (#7247)
13
+
14
+
15
+
16
+ ## [3.27.1](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.27.0...@exodus/solana-api@3.27.1) (2026-01-09)
17
+
18
+ **Note:** Version bump only for package @exodus/solana-api
19
+
20
+
21
+
22
+
23
+
6
24
  ## [3.27.0](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.26.6...@exodus/solana-api@3.27.0) (2026-01-08)
7
25
 
8
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/solana-api",
3
- "version": "3.27.0",
3
+ "version": "3.27.2",
4
4
  "description": "Transaction monitors, fee monitors, RPC with the blockchain node, and other networking code for Solana",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -33,7 +33,7 @@
33
33
  "@exodus/fetch": "^1.7.3",
34
34
  "@exodus/models": "^12.0.1",
35
35
  "@exodus/simple-retry": "^0.0.6",
36
- "@exodus/solana-lib": "^3.19.0",
36
+ "@exodus/solana-lib": "^3.19.2",
37
37
  "@exodus/solana-meta": "^2.0.2",
38
38
  "@exodus/timer": "^1.1.1",
39
39
  "debug": "^4.1.1",
@@ -49,7 +49,7 @@
49
49
  "@exodus/assets-testing": "^1.0.0",
50
50
  "@exodus/solana-web3.js": "^1.63.1-exodus.9-rc3"
51
51
  },
52
- "gitHead": "273cd4583facb72bc145c5cdfe29063f78b13491",
52
+ "gitHead": "f12ac3b153051649bd7c8c3f23fb3653c1ec5a55",
53
53
  "bugs": {
54
54
  "url": "https://github.com/ExodusMovement/assets/issues?q=is%3Aissue+is%3Aopen+label%3Asolana-api"
55
55
  },
package/src/api.js CHANGED
@@ -7,7 +7,6 @@ import {
7
7
  buildRawTransaction,
8
8
  computeBalance,
9
9
  deserializeMetaplexMetadata,
10
- EXODUS_TRUSTED_SIGNERS,
11
10
  filterAccountsByOwner,
12
11
  getMetadataAccount,
13
12
  getTransactionSimulationParams,
@@ -23,6 +22,7 @@ import urljoin from 'url-join'
23
22
 
24
23
  import { getStakeActivation } from './get-stake-activation/index.js'
25
24
  import { parseTransaction } from './tx-parser.js'
25
+ import { isSolAddressPoisoningTx } from './txs-utils.js'
26
26
 
27
27
  const createApi = createApiCJS.default || createApiCJS
28
28
 
@@ -233,11 +233,7 @@ export class Api {
233
233
  })
234
234
 
235
235
  if (!parsedTx.from && parsedTx.tokenTxs?.length === 0 && !includeUnparsed) return // cannot parse it
236
- if (
237
- !parsedTx.ownerIsFeePayer &&
238
- parsedTx.error &&
239
- !EXODUS_TRUSTED_SIGNERS.includes(parsedTx.feePayer)
240
- ) {
236
+ if (isSolAddressPoisoningTx({ parsedTx, address })) {
241
237
  return
242
238
  } // skip address poisoning txs attempts.
243
239
 
package/src/tx-parser.js CHANGED
@@ -25,6 +25,7 @@ export const parseTransaction = (
25
25
  let { instructions, accountKeys = [] } = txDetails.transaction.message
26
26
  const feePayerPubkey = accountKeys[0].pubkey
27
27
  const ownerIsFeePayer = feePayerPubkey === ownerAddress
28
+ const signers = accountKeys.filter((key) => key.signer).map((key) => key.pubkey)
28
29
  const txId = txDetails.transaction.signatures[0]
29
30
 
30
31
  const getUnparsedTx = () => {
@@ -88,7 +89,7 @@ export const parseTransaction = (
88
89
  slot: txDetails.slot,
89
90
  error: !(txDetails.meta.err === null),
90
91
  ownerIsFeePayer,
91
- feePayer: feePayerPubkey,
92
+ signers,
92
93
  owner,
93
94
  from,
94
95
  to,
@@ -222,7 +223,7 @@ export const parseTransaction = (
222
223
  type: ix.parsed.type,
223
224
  slot: txDetails.slot,
224
225
  ownerIsFeePayer,
225
- feePayer: feePayerPubkey,
226
+ signers,
226
227
  owner: isSending ? ownerAddress : null,
227
228
  from: isSending ? ownerAddress : source,
228
229
  to: isSending ? destination : ownerAddress,
@@ -366,7 +367,7 @@ export const parseTransaction = (
366
367
  slot: txDetails.slot,
367
368
  error: !(txDetails.meta.err === null),
368
369
  ownerIsFeePayer,
369
- feePayer: feePayerPubkey,
370
+ signers,
370
371
  ...tx,
371
372
  }))
372
373
  } else if (preTokenBalances && postTokenBalances) {
@@ -435,7 +436,7 @@ export const parseTransaction = (
435
436
  slot: txDetails.slot,
436
437
  error: !(txDetails.meta.err === null),
437
438
  ownerIsFeePayer,
438
- feePayer: feePayerPubkey,
439
+ signers,
439
440
  ...tx,
440
441
  }
441
442
  }
package/src/txs-utils.js CHANGED
@@ -23,3 +23,12 @@ export const isSolTransferInstruction = ({ program, type }) =>
23
23
 
24
24
  export const isSplMintInstruction = ({ program, type }) =>
25
25
  program === 'spl-token' && MINT_INSTRUCTION_TYPES.has(type)
26
+
27
+ export const isSolAddressPoisoningTx = ({ parsedTx, address }) => {
28
+ return (
29
+ !parsedTx.ownerIsFeePayer &&
30
+ parsedTx.error &&
31
+ (parsedTx.from === address || parsedTx?.tokenTxs?.some((tx) => tx.from === address)) && // send tx
32
+ !parsedTx.signers.includes(address)
33
+ )
34
+ }
package/src/ws-api.js CHANGED
@@ -1,15 +1,9 @@
1
- import {
2
- EXODUS_TRUSTED_SIGNERS,
3
- PublicKey,
4
- Token,
5
- TOKEN_2022_PROGRAM_ID,
6
- TOKEN_PROGRAM_ID,
7
- U64,
8
- } from '@exodus/solana-lib'
1
+ import { PublicKey, Token, TOKEN_2022_PROGRAM_ID, TOKEN_PROGRAM_ID, U64 } from '@exodus/solana-lib'
9
2
  import lodash from 'lodash'
10
3
 
11
4
  import { Connection } from './connection.js'
12
5
  import { parseTransaction } from './tx-parser.js'
6
+ import { isSolAddressPoisoningTx } from './txs-utils.js'
13
7
 
14
8
  // Helius Advanced WebSocket
15
9
  const WS_ENDPOINT = 'wss://solana-helius-wss.a.exodus.io/ws' // pointing to: wss://atlas-mainnet.helius-rpc.com/?api-key=<API_KEY>
@@ -157,11 +151,7 @@ export class WsApi {
157
151
  const timestamp = Date.now() // the notification event has no blockTime
158
152
 
159
153
  if (!parsedTx.from && parsedTx.tokenTxs?.length === 0) return { logItemsByAsset: {} } // cannot parse it
160
- if (
161
- !parsedTx.ownerIsFeePayer &&
162
- parsedTx.error &&
163
- !EXODUS_TRUSTED_SIGNERS.includes(parsedTx.feePayer)
164
- ) {
154
+ if (isSolAddressPoisoningTx({ parsedTx, address })) {
165
155
  return { logItemsByAsset: {} } // skip address poisoning txs attempts.
166
156
  }
167
157