UNPKG

@accret/bridge-sdk

Version:
22 lines 895 B
import type { ChainName, Quote } from "@mayanfinance/swap-sdk"; export interface BridgeParams { fromChain: ChainName; fromToken: string; toChain: ChainName; toToken: string; amount: number; slippageBps?: string | number; } /** * @description Fetches a quote for swapping tokens on the Mayan network * @param params - The parameters for fetching a quote * @param params.fromChain - The chain from which to swap * @param params.fromToken - The token to swap from * @param params.toChain - The chain to which to swap * @param params.toToken - The token to swap to * @param params.amount - The amount to swap * @param params.slippageBps - The slippage in basis points (default is 50) * @returns A promise that resolves to the best quote for the swap */ export declare function getQuote(params: BridgeParams): Promise<Quote[]>; //# sourceMappingURL=getQuote.d.ts.map