tx-indexer 0.5.2 → 0.5.4
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 +5 -5
- package/dist/{client-DdzTiKZ4.d.ts → client-xmDVjOy4.d.ts} +13 -1
- package/dist/client.d.ts +2 -2
- package/dist/client.js +548 -63
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +109 -5
- package/dist/index.js +570 -66
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +4 -4
- package/package.json +4 -2
- package/dist/{classification.types-Cn9IGtEC.d.ts → classification.types-h046WjuF.d.ts} +7 -7
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 |
|
|
88
|
-
| `createIndexer` only |
|
|
89
|
-
| `classifyTransaction` |
|
|
90
|
-
| `fetchTransaction` |
|
|
91
|
-
| `transactionToLegs` |
|
|
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-
|
|
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-
|
|
3
|
-
import './classification.types-
|
|
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';
|