wgm-swap-components
Version:
A React component library for token swap interfaces
15 lines (14 loc) • 477 B
TypeScript
export declare function getQuote(tokenInAddress: string, tokenInChainId: number, tokenOutAddress: string, tokenOutChainId: number, amount: string, type?: string, protocols?: string, signal?: AbortSignal): Promise<{
route: any;
amountOut: any;
priceImpact: string;
gasEstimate: any;
protocols: any;
} | null>;
export interface QuoteResponse {
route: any[];
amountOut: string;
priceImpact: string;
gasEstimate: string;
protocols: any[];
}