UNPKG

ttxd-alpha

Version:

An SDK for building applications on top of V2,V3 and Solana exchanges

32 lines (31 loc) 1.02 kB
export interface InitSdkParams { privateKey: string; rpcUrl?: string; loadToken?: boolean; } export interface SwapRaydiumV2Params { poolId: string; amountIn: number; privateKey: string; slippage?: number; rpcUrl?: string; poolType: 'amm' | 'clmm'; priorityFeeSol?: number; tipFeeSol?: number; } export interface SwapResult { txId: string; mintInSymbol: string; mintOutSymbol: string; } export declare const JITO_TIP_PAYMENT_ACCOUNT = "96gYZGLnJYVFmbjzopPSU6QiEV5fGqZNyN9nmNhvrZU5"; export declare const MAX_RETRIES = 3; export declare const INITIAL_BACKOFF = 1000; export declare const MAX_BACKOFF = 30000; export declare const JITTER_MAX = 100; export declare const RPC_URL = ""; export declare const COMPUTE_UNITS = 1000000; export declare const DEFAULT_SLIPPAGE = 0.05; export declare const DEFAULT_PRIORITY_FEE = 0.0005; export declare const SOL_TO_MICROLAMPORTS = 1000000000; export declare const RETRYABLE_ERRORS: Set<string>;