@exodus/solana-api 3.27.6 → 3.27.7

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
+ ## [3.27.7](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.27.6...@exodus/solana-api@3.27.7) (2026-01-26)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+
12
+ * fix: Solana SPL token balance not updating via WebSocket notifications (#7323)
13
+
14
+
15
+
6
16
  ## [3.27.6](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.27.5...@exodus/solana-api@3.27.6) (2026-01-21)
7
17
 
8
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/solana-api",
3
- "version": "3.27.6",
3
+ "version": "3.27.7",
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",
@@ -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": "9bc961015aa41912a6cbcfde9ef98e090fe39b41",
52
+ "gitHead": "5194ac4148f9b6d08ec0b9b14ae1e111af04ae1a",
53
53
  "bugs": {
54
54
  "url": "https://github.com/ExodusMovement/assets/issues?q=is%3Aissue+is%3Aopen+label%3Asolana-api"
55
55
  },
package/src/ws-api.js CHANGED
@@ -131,6 +131,17 @@ export class WsApi {
131
131
 
132
132
  // SPL Token balance changed (both spl-token and spl-2022 have the first 165 bytes the same)
133
133
  if (isSplTokenAccount || isSpl2022TokenAccount) {
134
+ // Handle jsonParsed encoding (data is an object with parsed info)
135
+ if (result.value.data?.parsed?.info) {
136
+ const parsed = result.value.data.parsed.info
137
+ return {
138
+ solAddress: parsed.owner,
139
+ amount: parsed.tokenAmount.amount,
140
+ tokenMintAddress: parsed.mint,
141
+ }
142
+ }
143
+
144
+ // Handle base64 encoding (data is an array: [base64_string, "base64"])
134
145
  const decoded = Token.decode(Buffer.from(result.value.data[0], 'base64'))
135
146
  const tokenMintAddress = new PublicKey(decoded.mint).toBase58()
136
147
  const solAddress = new PublicKey(decoded.owner).toBase58()