@exodus/solana-api 3.27.4 → 3.27.5
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 +8 -0
- package/package.json +2 -2
- package/src/connection.js +1 -1
- package/src/ws-api.js +9 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.5](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.27.4...@exodus/solana-api@3.27.5) (2026-01-19)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @exodus/solana-api
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [3.27.4](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.27.3...@exodus/solana-api@3.27.4) (2026-01-15)
|
|
7
15
|
|
|
8
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/solana-api",
|
|
3
|
-
"version": "3.27.
|
|
3
|
+
"version": "3.27.5",
|
|
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": "
|
|
52
|
+
"gitHead": "7b4ab87737c74a125365ae729af09dff9779b7f0",
|
|
53
53
|
"bugs": {
|
|
54
54
|
"url": "https://github.com/ExodusMovement/assets/issues?q=is%3Aissue+is%3Aopen+label%3Asolana-api"
|
|
55
55
|
},
|
package/src/connection.js
CHANGED
package/src/ws-api.js
CHANGED
|
@@ -5,8 +5,10 @@ import { Connection } from './connection.js'
|
|
|
5
5
|
import { parseTransaction } from './tx-parser.js'
|
|
6
6
|
import { isSolAddressPoisoningTx } from './txs-utils.js'
|
|
7
7
|
|
|
8
|
+
// Triton Whirligig WebSocket
|
|
9
|
+
const WS_ENDPOINT = 'wss://solana-triton.a.exodus.io/whirligig' // pointing to: wss://exodus-solanama-6db3.mainnet.rpcpool.com/<token>/whirligig
|
|
8
10
|
// Helius Advanced WebSocket
|
|
9
|
-
const WS_ENDPOINT = 'wss://solana-helius-wss.a.exodus.io/ws' // pointing to: wss://atlas-mainnet.helius-rpc.com/?api-key=<API_KEY>
|
|
11
|
+
// const WS_ENDPOINT = 'wss://solana-helius-wss.a.exodus.io/ws' // pointing to: wss://atlas-mainnet.helius-rpc.com/?api-key=<API_KEY>
|
|
10
12
|
|
|
11
13
|
export class WsApi {
|
|
12
14
|
constructor({ rpcUrl, wsUrl, assets }) {
|
|
@@ -88,7 +90,10 @@ export class WsApi {
|
|
|
88
90
|
{
|
|
89
91
|
vote: false,
|
|
90
92
|
// failed: true,
|
|
91
|
-
|
|
93
|
+
accounts: {
|
|
94
|
+
include: addresses,
|
|
95
|
+
},
|
|
96
|
+
// accountInclude: addresses, // Helius
|
|
92
97
|
},
|
|
93
98
|
{
|
|
94
99
|
commitment: 'confirmed',
|
|
@@ -147,7 +152,8 @@ export class WsApi {
|
|
|
147
152
|
tokenAccountsByOwner,
|
|
148
153
|
result,
|
|
149
154
|
}) {
|
|
150
|
-
const
|
|
155
|
+
const rawTransaction = result?.value ? result.value.transaction : result.transaction // for Triton Whirligig OR Helius Advanced WS
|
|
156
|
+
const parsedTx = parseTransaction(address, rawTransaction, tokenAccountsByOwner)
|
|
151
157
|
const timestamp = Date.now() // the notification event has no blockTime
|
|
152
158
|
|
|
153
159
|
if (!parsedTx.from && parsedTx.tokenTxs?.length === 0) return { logItemsByAsset: {} } // cannot parse it
|