- useEvmRoute(amountError, debouncedTokenAmountIn, debouncedSettings, destinationAddress, userEvmAddress, disableRevalidation, sourceAsset?, sourceChain?, destinationAsset?, destinationChain?, swapProviders?, isCCTPOnly?): ({
amountOut: string;
isLoadingRoute: boolean;
isValidatingRoute: boolean;
refresh: (() => Promise<any>);
routeError: any;
routeKey: null | string;
routeResponse: undefined | {
amountIn: string;
amountOut: string;
destinationAsset: SkipSupportedAsset;
destinationAssetChain: SkipSupportedChainData;
operations: any[];
response: RouteResponse;
sourceAsset: SkipSupportedAsset;
sourceAssetChain: SkipSupportedChainData;
transactionCount: number;
};
} | {
amountOut: string;
isLoadingRoute: boolean;
routeError: any;
routeResponse: undefined | RouteData;
})[] Parameters
- amountError: null | string
- debouncedTokenAmountIn: string
- debouncedSettings: {
arrivalGas: boolean;
boost: boolean;
slippage: number;
}arrivalGas: boolean
boost: boolean
slippage: number
- destinationAddress: string
- userEvmAddress: undefined | string
- disableRevalidation: boolean
Optional
sourceAsset: SkipSupportedAssetOptional
sourceChain: SkipSupportedChainDataOptional
destinationAsset: SkipSupportedAssetOptional
destinationChain: SkipSupportedChainDataOptional
swapProviders: string[]- isCCTPOnly: boolean = false
Returns ({
amountOut: string;
isLoadingRoute: boolean;
isValidatingRoute: boolean;
refresh: (() => Promise<any>);
routeError: any;
routeKey: null | string;
routeResponse: undefined | {
amountIn: string;
amountOut: string;
destinationAsset: SkipSupportedAsset;
destinationAssetChain: SkipSupportedChainData;
operations: any[];
response: RouteResponse;
sourceAsset: SkipSupportedAsset;
sourceAssetChain: SkipSupportedChainData;
transactionCount: number;
};
} | {
amountOut: string;
isLoadingRoute: boolean;
routeError: any;
routeResponse: undefined | RouteData;
})[]