tx-indexer 0.5.2 → 0.5.3

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/README.md CHANGED
@@ -84,11 +84,11 @@ The SDK is lightweight and tree-shakeable:
84
84
 
85
85
  | Import | Size (minified + brotli) |
86
86
  |--------|----------|
87
- | Full SDK | ~20 KB |
88
- | `createIndexer` only | ~20 KB |
89
- | `classifyTransaction` | ~3 KB |
90
- | `fetchTransaction` | ~4 KB |
91
- | `transactionToLegs` | ~4 KB |
87
+ | Full SDK | 11.34 KB |
88
+ | `createIndexer` only | 11.34 KB |
89
+ | `classifyTransaction` | 6.39 KB |
90
+ | `fetchTransaction` | 7.39 KB |
91
+ | `transactionToLegs` | 7.3 KB |
92
92
 
93
93
  Check current sizes:
94
94
  ```bash
@@ -1,5 +1,5 @@
1
1
  import { Rpc, GetBalanceApi, GetTokenAccountsByOwnerApi, GetSignaturesForAddressApi, GetTransactionApi, RpcSubscriptions, Address, Signature } from '@solana/kit';
2
- import { R as RawTransaction, T as TxLeg, a as TransactionClassification } from './classification.types-Cn9IGtEC.js';
2
+ import { R as RawTransaction, T as TxLeg, a as TransactionClassification } from './classification.types-h046WjuF.js';
3
3
 
4
4
  /**
5
5
  * Union type of all RPC APIs used by the transaction indexer.
@@ -211,9 +211,21 @@ interface GetTransactionsOptions {
211
211
  filterSpam?: boolean;
212
212
  spamConfig?: SpamFilterConfig;
213
213
  enrichNftMetadata?: boolean;
214
+ /**
215
+ * Enrich token metadata from Jupiter API.
216
+ * Replaces "Unknown Token" placeholders with actual token names/symbols/logos.
217
+ * Defaults to true.
218
+ */
219
+ enrichTokenMetadata?: boolean;
214
220
  }
215
221
  interface GetTransactionOptions {
216
222
  enrichNftMetadata?: boolean;
223
+ /**
224
+ * Enrich token metadata from Jupiter API.
225
+ * Replaces "Unknown Token" placeholders with actual token names/symbols/logos.
226
+ * Defaults to true.
227
+ */
228
+ enrichTokenMetadata?: boolean;
217
229
  }
218
230
  interface ClassifiedTransaction {
219
231
  tx: RawTransaction;
package/dist/client.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import '@solana/kit';
2
- export { C as ClassifiedTransaction, F as FetchTransactionsConfig, b as GetTransactionOptions, G as GetTransactionsOptions, T as TxIndexer, a as TxIndexerOptions, c as createIndexer } from './client-DdzTiKZ4.js';
3
- import './classification.types-Cn9IGtEC.js';
2
+ export { C as ClassifiedTransaction, F as FetchTransactionsConfig, b as GetTransactionOptions, G as GetTransactionsOptions, T as TxIndexer, a as TxIndexerOptions, c as createIndexer } from './client-xmDVjOy4.js';
3
+ import './classification.types-h046WjuF.js';
4
4
  import 'zod';