@openpump/sdk 0.1.0
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 +248 -0
- package/dist/index.cjs +462 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +473 -0
- package/dist/index.d.ts +473 -0
- package/dist/index.js +428 -0
- package/dist/index.js.map +1 -0
- package/package.json +52 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,473 @@
|
|
|
1
|
+
interface HttpClientConfig {
|
|
2
|
+
apiKey: string;
|
|
3
|
+
baseUrl: string;
|
|
4
|
+
timeout: number;
|
|
5
|
+
}
|
|
6
|
+
declare class HttpClient {
|
|
7
|
+
private readonly _apiKey;
|
|
8
|
+
private readonly _baseUrl;
|
|
9
|
+
private readonly _timeout;
|
|
10
|
+
constructor(config: HttpClientConfig);
|
|
11
|
+
get<T>(path: string, query?: Record<string, string>): Promise<T>;
|
|
12
|
+
post<T>(path: string, body?: unknown): Promise<T>;
|
|
13
|
+
patch<T>(path: string, body: unknown): Promise<T>;
|
|
14
|
+
delete<T>(path: string): Promise<T>;
|
|
15
|
+
private _headers;
|
|
16
|
+
private _handleResponse;
|
|
17
|
+
private _throwApiError;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface CreateWalletOptions {
|
|
21
|
+
label?: string;
|
|
22
|
+
}
|
|
23
|
+
interface WalletInfo {
|
|
24
|
+
id: string;
|
|
25
|
+
publicKey: string;
|
|
26
|
+
walletIndex: number;
|
|
27
|
+
label: string;
|
|
28
|
+
createdAt: string;
|
|
29
|
+
}
|
|
30
|
+
interface WalletBalance {
|
|
31
|
+
nativeSol: {
|
|
32
|
+
lamports: string;
|
|
33
|
+
sol: string;
|
|
34
|
+
};
|
|
35
|
+
tokens: Array<{
|
|
36
|
+
mint: string;
|
|
37
|
+
symbol: string | null;
|
|
38
|
+
amount: string;
|
|
39
|
+
decimals: number;
|
|
40
|
+
uiAmount: number;
|
|
41
|
+
}>;
|
|
42
|
+
}
|
|
43
|
+
interface DepositInstructions {
|
|
44
|
+
depositAddress: string;
|
|
45
|
+
minimums: {
|
|
46
|
+
tokenCreation: string;
|
|
47
|
+
bundleBuy: string;
|
|
48
|
+
standardBuy: string;
|
|
49
|
+
};
|
|
50
|
+
instructions: string[];
|
|
51
|
+
disclaimer: string;
|
|
52
|
+
network: string;
|
|
53
|
+
}
|
|
54
|
+
interface TransferOptions {
|
|
55
|
+
toAddress: string;
|
|
56
|
+
amountLamports: string;
|
|
57
|
+
mint?: string | null;
|
|
58
|
+
memo?: string;
|
|
59
|
+
priorityFeeMicroLamports?: number;
|
|
60
|
+
}
|
|
61
|
+
interface TransferResult {
|
|
62
|
+
signature: string;
|
|
63
|
+
amountLamports: string;
|
|
64
|
+
fee: string;
|
|
65
|
+
}
|
|
66
|
+
interface TransactionListOptions {
|
|
67
|
+
type?: 'buy' | 'sell' | 'transfer';
|
|
68
|
+
limit?: number;
|
|
69
|
+
offset?: number;
|
|
70
|
+
}
|
|
71
|
+
interface TransactionListResult {
|
|
72
|
+
transactions: Array<Record<string, unknown>>;
|
|
73
|
+
total: number;
|
|
74
|
+
limit: number;
|
|
75
|
+
offset: number;
|
|
76
|
+
}
|
|
77
|
+
declare class Wallets {
|
|
78
|
+
private readonly _http;
|
|
79
|
+
constructor(_http: HttpClient);
|
|
80
|
+
/** List all active wallets for the authenticated user. */
|
|
81
|
+
list(): Promise<WalletInfo[]>;
|
|
82
|
+
/** Create a new wallet with an optional label. */
|
|
83
|
+
create(options?: CreateWalletOptions): Promise<WalletInfo>;
|
|
84
|
+
/** Get a single wallet by ID. */
|
|
85
|
+
get(walletId: string): Promise<WalletInfo>;
|
|
86
|
+
/** Get SOL + token balances for a wallet. */
|
|
87
|
+
getBalance(walletId: string): Promise<WalletBalance>;
|
|
88
|
+
/** Get deposit address and SOL minimums for a wallet. */
|
|
89
|
+
getDepositInstructions(walletId: string): Promise<DepositInstructions>;
|
|
90
|
+
/** Force a live RPC balance refresh, bypassing the 30s cache. */
|
|
91
|
+
refreshBalance(walletId: string): Promise<WalletBalance>;
|
|
92
|
+
/**
|
|
93
|
+
* Execute an on-chain SOL or SPL token transfer.
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* ```ts
|
|
97
|
+
* const result = await op.wallets.transfer('wallet-id', {
|
|
98
|
+
* toAddress: 'recipient-public-key',
|
|
99
|
+
* amountLamports: '100000000',
|
|
100
|
+
* });
|
|
101
|
+
* console.log(result.signature);
|
|
102
|
+
* ```
|
|
103
|
+
*/
|
|
104
|
+
transfer(walletId: string, options: TransferOptions): Promise<TransferResult>;
|
|
105
|
+
/** Get paginated transfer history for a wallet. */
|
|
106
|
+
getTransactions(walletId: string, options?: TransactionListOptions): Promise<TransactionListResult>;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
interface CreateTokenOptions {
|
|
110
|
+
walletIndex?: number;
|
|
111
|
+
name: string;
|
|
112
|
+
symbol: string;
|
|
113
|
+
description: string;
|
|
114
|
+
imageBase64: string;
|
|
115
|
+
imageType: 'image/png' | 'image/jpeg' | 'image/jpg' | 'image/gif' | 'image/webp';
|
|
116
|
+
initialBuyAmountSol?: number;
|
|
117
|
+
twitter?: string;
|
|
118
|
+
telegram?: string;
|
|
119
|
+
website?: string;
|
|
120
|
+
}
|
|
121
|
+
interface CreateTokenResult {
|
|
122
|
+
tokenId: string;
|
|
123
|
+
mint: string;
|
|
124
|
+
signature: string;
|
|
125
|
+
metadataUri: string;
|
|
126
|
+
bondingCurveAccount: string;
|
|
127
|
+
}
|
|
128
|
+
interface TokenListItem {
|
|
129
|
+
id: string;
|
|
130
|
+
mintAddress: string;
|
|
131
|
+
name: string;
|
|
132
|
+
symbol: string;
|
|
133
|
+
graduationStatus: string;
|
|
134
|
+
metadataUri: string;
|
|
135
|
+
creatorAddress: string;
|
|
136
|
+
createdAt: string;
|
|
137
|
+
}
|
|
138
|
+
interface CurveState {
|
|
139
|
+
mint: string;
|
|
140
|
+
virtualTokenReserves: string;
|
|
141
|
+
virtualSolReserves: string;
|
|
142
|
+
realTokenReserves: string;
|
|
143
|
+
realSolReserves: string;
|
|
144
|
+
tokenTotalSupply: string;
|
|
145
|
+
complete: boolean;
|
|
146
|
+
isMayhemMode: boolean;
|
|
147
|
+
currentPriceSOL: number;
|
|
148
|
+
marketCapSOL: number;
|
|
149
|
+
graduationPercent: number;
|
|
150
|
+
}
|
|
151
|
+
declare class Tokens {
|
|
152
|
+
private readonly _http;
|
|
153
|
+
constructor(_http: HttpClient);
|
|
154
|
+
/** List tokens created by the authenticated user. */
|
|
155
|
+
list(): Promise<TokenListItem[]>;
|
|
156
|
+
/**
|
|
157
|
+
* Create a new PumpFun token with IPFS metadata upload.
|
|
158
|
+
*
|
|
159
|
+
* @example
|
|
160
|
+
* ```ts
|
|
161
|
+
* const token = await op.tokens.create({
|
|
162
|
+
* name: 'My Token',
|
|
163
|
+
* symbol: 'MTK',
|
|
164
|
+
* description: 'A cool token',
|
|
165
|
+
* imageBase64: 'base64-encoded-image...',
|
|
166
|
+
* imageType: 'image/png',
|
|
167
|
+
* });
|
|
168
|
+
* console.log(token.mint);
|
|
169
|
+
* ```
|
|
170
|
+
*/
|
|
171
|
+
create(options: CreateTokenOptions): Promise<CreateTokenResult>;
|
|
172
|
+
/** Get market info for a token (mainnet only, returns null on devnet). */
|
|
173
|
+
getMarketInfo(mint: string): Promise<Record<string, unknown> | null>;
|
|
174
|
+
/** Get bonding curve state including price, market cap, and graduation progress. */
|
|
175
|
+
getCurveState(mint: string): Promise<CurveState>;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
type PriorityLevel = 'economy' | 'normal' | 'fast' | 'turbo';
|
|
179
|
+
interface QuoteOptions {
|
|
180
|
+
action: 'buy' | 'sell';
|
|
181
|
+
solAmount?: string;
|
|
182
|
+
tokenAmount?: string;
|
|
183
|
+
}
|
|
184
|
+
interface QuoteResult {
|
|
185
|
+
route: 'bonding_curve' | 'pumpswap';
|
|
186
|
+
expectedTokens?: string;
|
|
187
|
+
expectedSol?: string;
|
|
188
|
+
priceImpact: number;
|
|
189
|
+
fee: number;
|
|
190
|
+
disclaimer: string;
|
|
191
|
+
}
|
|
192
|
+
interface QuoteBuyCostOptions {
|
|
193
|
+
tokenAmount: string;
|
|
194
|
+
}
|
|
195
|
+
interface QuoteBuyCostResult {
|
|
196
|
+
solCostLamports: string;
|
|
197
|
+
route: 'bonding_curve' | 'pumpswap';
|
|
198
|
+
disclaimer: string;
|
|
199
|
+
}
|
|
200
|
+
interface BuyOptions {
|
|
201
|
+
walletId: string;
|
|
202
|
+
amountLamports: string;
|
|
203
|
+
slippageBps?: number;
|
|
204
|
+
priorityLevel?: PriorityLevel;
|
|
205
|
+
}
|
|
206
|
+
interface BuyResult {
|
|
207
|
+
signature: string;
|
|
208
|
+
estimatedTokenAmount: string;
|
|
209
|
+
solSpent: string;
|
|
210
|
+
route: 'bonding_curve' | 'pumpswap';
|
|
211
|
+
disclaimer: string;
|
|
212
|
+
}
|
|
213
|
+
interface SellOptions {
|
|
214
|
+
walletId: string;
|
|
215
|
+
tokenAmount: string;
|
|
216
|
+
slippageBps?: number;
|
|
217
|
+
priorityLevel?: PriorityLevel;
|
|
218
|
+
}
|
|
219
|
+
interface SellResult {
|
|
220
|
+
signature: string;
|
|
221
|
+
estimatedSolReceived: string;
|
|
222
|
+
tokensSold: string;
|
|
223
|
+
route: 'bonding_curve' | 'pumpswap';
|
|
224
|
+
disclaimer: string;
|
|
225
|
+
}
|
|
226
|
+
interface BundleSellEntry {
|
|
227
|
+
walletId: string;
|
|
228
|
+
tokenAmount: string;
|
|
229
|
+
}
|
|
230
|
+
interface BundleSellOptions {
|
|
231
|
+
walletSells: BundleSellEntry[];
|
|
232
|
+
tipWalletId?: string;
|
|
233
|
+
tipLamports?: number;
|
|
234
|
+
slippageBps?: number;
|
|
235
|
+
priorityLevel?: PriorityLevel;
|
|
236
|
+
}
|
|
237
|
+
interface BundleSellResult {
|
|
238
|
+
bundleResults: Array<{
|
|
239
|
+
bundleId: string;
|
|
240
|
+
status: 'Landed' | 'Failed' | 'Timeout';
|
|
241
|
+
signatures?: string[];
|
|
242
|
+
walletsIncluded: string[];
|
|
243
|
+
}>;
|
|
244
|
+
warnings: Array<{
|
|
245
|
+
walletId: string;
|
|
246
|
+
reason: string;
|
|
247
|
+
}>;
|
|
248
|
+
}
|
|
249
|
+
declare class Trading {
|
|
250
|
+
private readonly _http;
|
|
251
|
+
constructor(_http: HttpClient);
|
|
252
|
+
/**
|
|
253
|
+
* Get a price quote for buying or selling a token.
|
|
254
|
+
*
|
|
255
|
+
* @example
|
|
256
|
+
* ```ts
|
|
257
|
+
* const quote = await op.trading.getQuote('So11...', {
|
|
258
|
+
* action: 'buy',
|
|
259
|
+
* solAmount: '1000000000',
|
|
260
|
+
* });
|
|
261
|
+
* console.log(quote.expectedTokens);
|
|
262
|
+
* ```
|
|
263
|
+
*/
|
|
264
|
+
getQuote(mint: string, options: QuoteOptions): Promise<QuoteResult>;
|
|
265
|
+
/** Get the SOL cost to buy a specific number of tokens (inverse quote). */
|
|
266
|
+
getQuoteBuyCost(mint: string, options: QuoteBuyCostOptions): Promise<QuoteBuyCostResult>;
|
|
267
|
+
/** Execute a buy transaction for a token. */
|
|
268
|
+
buy(mint: string, options: BuyOptions): Promise<BuyResult>;
|
|
269
|
+
/** Execute a sell transaction for a token. */
|
|
270
|
+
sell(mint: string, options: SellOptions): Promise<SellResult>;
|
|
271
|
+
/** Multi-wallet sell packed into Jito bundles. */
|
|
272
|
+
bundleSell(mint: string, options: BundleSellOptions): Promise<BundleSellResult>;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
interface JobStatus {
|
|
276
|
+
jobId: string;
|
|
277
|
+
status: 'waiting' | 'active' | 'completed' | 'failed';
|
|
278
|
+
progress: number;
|
|
279
|
+
result?: {
|
|
280
|
+
bundleStatuses: Array<{
|
|
281
|
+
bundleId: string;
|
|
282
|
+
status: 'Pending' | 'Landed' | 'Failed' | 'Timeout';
|
|
283
|
+
signatures?: string[];
|
|
284
|
+
}>;
|
|
285
|
+
};
|
|
286
|
+
warnings?: Array<{
|
|
287
|
+
walletId: string;
|
|
288
|
+
reason: string;
|
|
289
|
+
}>;
|
|
290
|
+
error?: string;
|
|
291
|
+
}
|
|
292
|
+
interface PollOptions {
|
|
293
|
+
/** Polling interval in milliseconds. Default: 1000 */
|
|
294
|
+
intervalMs?: number;
|
|
295
|
+
/** Maximum time to wait in milliseconds. Default: 30000 */
|
|
296
|
+
timeoutMs?: number;
|
|
297
|
+
/** AbortSignal for cancellation. */
|
|
298
|
+
signal?: AbortSignal;
|
|
299
|
+
/** Callback invoked on each poll with current status. */
|
|
300
|
+
onProgress?: (status: JobStatus) => void;
|
|
301
|
+
}
|
|
302
|
+
declare class Jobs {
|
|
303
|
+
private readonly _http;
|
|
304
|
+
constructor(_http: HttpClient);
|
|
305
|
+
/** Get the current status of a job. */
|
|
306
|
+
get(jobId: string): Promise<JobStatus>;
|
|
307
|
+
/**
|
|
308
|
+
* Poll a job until it completes or the timeout is reached.
|
|
309
|
+
*
|
|
310
|
+
* @param jobId - The job ID to poll.
|
|
311
|
+
* @param options - Polling configuration.
|
|
312
|
+
* @returns The final job status (completed).
|
|
313
|
+
* @throws {Error} If the job fails or the timeout is reached.
|
|
314
|
+
*
|
|
315
|
+
* @example
|
|
316
|
+
* ```ts
|
|
317
|
+
* const launch = await op.bundles.launch({ ... });
|
|
318
|
+
* const result = await op.jobs.poll(launch.jobId, {
|
|
319
|
+
* intervalMs: 2000,
|
|
320
|
+
* timeoutMs: 60000,
|
|
321
|
+
* onProgress: (s) => console.log(`Progress: ${s.progress}%`),
|
|
322
|
+
* });
|
|
323
|
+
* ```
|
|
324
|
+
*/
|
|
325
|
+
poll(jobId: string, options?: PollOptions): Promise<JobStatus>;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
interface AccumulatedFees {
|
|
329
|
+
creatorAddress: string;
|
|
330
|
+
accumulatedLamports: string;
|
|
331
|
+
accumulatedSOL: number;
|
|
332
|
+
creatorVaultAddress: string;
|
|
333
|
+
}
|
|
334
|
+
interface ClaimFeesResult {
|
|
335
|
+
signature: string;
|
|
336
|
+
amountClaimed: string;
|
|
337
|
+
amountClaimedSOL: number;
|
|
338
|
+
}
|
|
339
|
+
declare class CreatorFees {
|
|
340
|
+
private readonly _http;
|
|
341
|
+
constructor(_http: HttpClient);
|
|
342
|
+
/** Get accumulated creator fees for a given creator address. */
|
|
343
|
+
getAccumulatedFees(address: string): Promise<AccumulatedFees>;
|
|
344
|
+
/** Claim accumulated creator fees for a wallet you own. */
|
|
345
|
+
claim(creatorAddress: string): Promise<ClaimFeesResult>;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
interface BundleLaunchOptions {
|
|
349
|
+
devWalletId: string;
|
|
350
|
+
buyWalletIds: string[];
|
|
351
|
+
name: string;
|
|
352
|
+
symbol: string;
|
|
353
|
+
description?: string;
|
|
354
|
+
imageBase64: string;
|
|
355
|
+
imageType: 'image/png' | 'image/jpeg' | 'image/gif' | 'image/webp';
|
|
356
|
+
devBuyAmountLamports?: string;
|
|
357
|
+
walletBuyAmounts: string[];
|
|
358
|
+
tipLamports?: number;
|
|
359
|
+
twitter?: string;
|
|
360
|
+
telegram?: string;
|
|
361
|
+
website?: string;
|
|
362
|
+
}
|
|
363
|
+
interface BundleLaunchResult {
|
|
364
|
+
jobId: string;
|
|
365
|
+
}
|
|
366
|
+
declare class Bundles {
|
|
367
|
+
private readonly _http;
|
|
368
|
+
constructor(_http: HttpClient);
|
|
369
|
+
/**
|
|
370
|
+
* Launch a coordinated token creation + multi-wallet bundle buy.
|
|
371
|
+
* Returns a job ID for polling.
|
|
372
|
+
*
|
|
373
|
+
* @example
|
|
374
|
+
* ```ts
|
|
375
|
+
* const { jobId } = await op.bundles.launch({
|
|
376
|
+
* devWalletId: 'wallet-1',
|
|
377
|
+
* buyWalletIds: ['wallet-2', 'wallet-3'],
|
|
378
|
+
* name: 'My Token',
|
|
379
|
+
* symbol: 'MTK',
|
|
380
|
+
* imageBase64: '...',
|
|
381
|
+
* imageType: 'image/png',
|
|
382
|
+
* walletBuyAmounts: ['500000000', '500000000'],
|
|
383
|
+
* });
|
|
384
|
+
* const result = await op.jobs.poll(jobId);
|
|
385
|
+
* ```
|
|
386
|
+
*/
|
|
387
|
+
launch(options: BundleLaunchOptions): Promise<BundleLaunchResult>;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
interface OpenPumpConfig {
|
|
391
|
+
/** API key (op_sk_live_...) */
|
|
392
|
+
apiKey: string;
|
|
393
|
+
/** Base URL of the OpenPump API. Defaults to https://api.openpump.io */
|
|
394
|
+
baseUrl?: string;
|
|
395
|
+
/** Request timeout in milliseconds. Defaults to 30_000 */
|
|
396
|
+
timeout?: number;
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* OpenPump SDK client with resource-namespaced API methods.
|
|
400
|
+
*
|
|
401
|
+
* @example
|
|
402
|
+
* ```ts
|
|
403
|
+
* import { OpenPump } from '@openpump/sdk';
|
|
404
|
+
*
|
|
405
|
+
* const op = new OpenPump({ apiKey: 'op_sk_live_...' });
|
|
406
|
+
*
|
|
407
|
+
* // List wallets
|
|
408
|
+
* const wallets = await op.wallets.list();
|
|
409
|
+
*
|
|
410
|
+
* // Create a token
|
|
411
|
+
* const token = await op.tokens.create({ ... });
|
|
412
|
+
*
|
|
413
|
+
* // Buy tokens
|
|
414
|
+
* const trade = await op.trading.buy('mint-address', { ... });
|
|
415
|
+
*
|
|
416
|
+
* // Poll a bundle launch job
|
|
417
|
+
* const job = await op.jobs.poll('job-id', { timeoutMs: 60_000 });
|
|
418
|
+
* ```
|
|
419
|
+
*/
|
|
420
|
+
declare class OpenPump {
|
|
421
|
+
readonly wallets: Wallets;
|
|
422
|
+
readonly tokens: Tokens;
|
|
423
|
+
readonly trading: Trading;
|
|
424
|
+
readonly jobs: Jobs;
|
|
425
|
+
readonly creatorFees: CreatorFees;
|
|
426
|
+
readonly bundles: Bundles;
|
|
427
|
+
private readonly _http;
|
|
428
|
+
constructor(config: OpenPumpConfig);
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* Base error class for all OpenPump SDK errors.
|
|
433
|
+
* All API errors are converted to typed exceptions.
|
|
434
|
+
*/
|
|
435
|
+
declare class OpenPumpError extends Error {
|
|
436
|
+
readonly code: string;
|
|
437
|
+
readonly status: number;
|
|
438
|
+
readonly details?: unknown | undefined;
|
|
439
|
+
readonly name: string;
|
|
440
|
+
constructor(code: string, message: string, status: number, details?: unknown | undefined);
|
|
441
|
+
}
|
|
442
|
+
/** Thrown when the API key is invalid or missing (HTTP 401). */
|
|
443
|
+
declare class AuthenticationError extends OpenPumpError {
|
|
444
|
+
readonly name = "AuthenticationError";
|
|
445
|
+
constructor(code: string, message: string, status: number, details?: unknown);
|
|
446
|
+
}
|
|
447
|
+
/** Thrown when the rate limit is exceeded (HTTP 429). */
|
|
448
|
+
declare class RateLimitError extends OpenPumpError {
|
|
449
|
+
readonly name = "RateLimitError";
|
|
450
|
+
constructor(code: string, message: string, status: number, details?: unknown);
|
|
451
|
+
}
|
|
452
|
+
/** Thrown when request validation fails (HTTP 422). */
|
|
453
|
+
declare class ValidationError extends OpenPumpError {
|
|
454
|
+
readonly name = "ValidationError";
|
|
455
|
+
constructor(code: string, message: string, status: number, details?: unknown);
|
|
456
|
+
}
|
|
457
|
+
/** Thrown when the requested resource is not found (HTTP 404). */
|
|
458
|
+
declare class NotFoundError extends OpenPumpError {
|
|
459
|
+
readonly name = "NotFoundError";
|
|
460
|
+
constructor(code: string, message: string, status: number, details?: unknown);
|
|
461
|
+
}
|
|
462
|
+
/** Thrown when the wallet has insufficient SOL or tokens for an operation. */
|
|
463
|
+
declare class InsufficientFundsError extends OpenPumpError {
|
|
464
|
+
readonly name = "InsufficientFundsError";
|
|
465
|
+
constructor(code: string, message: string, status: number, details?: unknown);
|
|
466
|
+
}
|
|
467
|
+
/** Thrown when an on-chain transaction fails (signature error, simulation failure, etc.). */
|
|
468
|
+
declare class TransactionError extends OpenPumpError {
|
|
469
|
+
readonly name = "TransactionError";
|
|
470
|
+
constructor(code: string, message: string, status: number, details?: unknown);
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
export { type AccumulatedFees, AuthenticationError, type BundleLaunchOptions, type BundleLaunchResult, type BundleSellEntry, type BundleSellOptions, type BundleSellResult, Bundles, type BuyOptions, type BuyResult, type ClaimFeesResult, type CreateTokenOptions, type CreateTokenResult, type CreateWalletOptions, CreatorFees, type CurveState, type DepositInstructions, InsufficientFundsError, type JobStatus, Jobs, NotFoundError, OpenPump, type OpenPumpConfig, OpenPumpError, type PollOptions, type PriorityLevel, type QuoteBuyCostOptions, type QuoteBuyCostResult, type QuoteOptions, type QuoteResult, RateLimitError, type SellOptions, type SellResult, type TokenListItem, Tokens, Trading, TransactionError, type TransactionListOptions, type TransactionListResult, type TransferOptions, type TransferResult, ValidationError, type WalletBalance, type WalletInfo, Wallets };
|