UNPKG

@accret/bridge-sdk

Version:
22 lines 1.22 kB
import type { QuoteResponse, SwapRequest } from "@jup-ag/api"; import type { GetJupiterTokenListResponse } from "../../types/jupiter"; /** * @description Get a quote for a token swap with Jupiter * @param inputMint {String} The mint address of the input token. * @param outputMint {String} The mint address of the output token. * @param amount {Number} The amount of input tokens to swap. * @returns A promise that resolves to the quote response. */ export declare function getJupiterQuote(inputMint: string, outputMint: string, amount: number): Promise<QuoteResponse>; /** * @description Fetches the token list from the Jupiter aggregator. * @returns A promise that resolves to the token list response. */ export declare function getJupiterTokenList(): Promise<GetJupiterTokenListResponse>; /** * @description Builds a transaction for a token swap on the Jupiter aggregator. * @param param0 {Object: {userPublicKey: String, quoteResponse: QuoteResponse}} The parameters for the transaction. * @returns A promise that resolves to the swap response. */ export declare function executeJupiterTransaction({ userPublicKey, quoteResponse, }: SwapRequest): Promise<string>; //# sourceMappingURL=index.d.ts.map