UNPKG

@accret/bridge-sdk

Version:
18 lines 1.03 kB
import type { QuoteGetRequest, QuoteResponse } from "@jup-ag/api"; import type { GetJupiterTokenResponse } from "../../types/jupiter"; /** * @description Fetches token information from the Jupiter API. * @param mint {String} The mint address of the token. * @returns {Promise<GetJupiterTokenResponse>} The token information from the Jupiter API. */ export declare function getTokenInfo(mint: string): Promise<GetJupiterTokenResponse>; /** * @description Fetches a quote for a token swap from the Jupiter API. * @param param0 {Object} The parameters for the quote request. * @param param0.inputMint {String} The mint address of the input token. * @param param0.outputMint {String} The mint address of the output token. * @param param0.amount {Number} The amount of input tokens to swap. * @returns {Promise<QuoteResponse>} The quote response from the Jupiter API. */ export declare function getQuote({ inputMint, outputMint, amount, }: QuoteGetRequest): Promise<QuoteResponse>; //# sourceMappingURL=getQuote.d.ts.map