Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Request and response types for getTradeQuotes.
getTradeQuotes
@dzapio/sdk
type TradeQuotesRequest = { fromChain: number; gasless?: boolean; private?: boolean; data: TradeQuotesRequestData[]; disableEstimation?: boolean; account?: string; bridges?: ProtocolFilter; dexes?: ProtocolFilter; filter?: QuoteFilter; timingStrategy?: Partial<{ minWaitTimeMs; maxWaitTimeMs; subsequentDelayMs; preferredResultCount; relaxMinSuccessOnDelay }>; };
type TradeQuotesRequestData = { amount: string; // wei as string srcToken: string; srcDecimals?: number; destToken: string; destDecimals?: number; toChain: number; slippage: number; selectedSource?: string; };
getTradeQuotes()
type TradeQuotesResponse = { [pair: string]: { status?: string; message?: string; recommendedSource: string; fastestSource?: string; bestReturnSource: string; questSource?: string; quoteRates?: TradeQuotesByProviderId; tokensWithoutPrice: Record<number, string[]>; }; };
recommendedSource ?? bestReturnSource