- useSquidRoute(amountError, debouncedTokenAmountIn, destinationAsset?, destinationChain?, destinationAddress?, debouncedSettings?, sourceAsset?, sourceChain?, userEvmAddress?, disableRevalidation?, enabled?): {
amountOut: string;
isLoadingRoute: boolean;
routeError: any;
routeResponse: undefined | RouteData;
} Parameters
- amountError: null | string
- debouncedTokenAmountIn: string
Optional
destinationAsset: SkipSupportedAssetOptional
destinationChain: SkipSupportedChainDataOptional
destinationAddress: stringOptional
debouncedSettings: {
arrivalGas: boolean;
boost: boolean;
slippage: number;
}arrivalGas: boolean
boost: boolean
slippage: number
Optional
sourceAsset: SkipSupportedAssetOptional
sourceChain: SkipSupportedChainDataOptional
userEvmAddress: stringOptional
disableRevalidation: booleanOptional
enabled: boolean
Returns {
amountOut: string;
isLoadingRoute: boolean;
routeError: any;
routeResponse: undefined | RouteData;
}
amountOut: string
isLoadingRoute: boolean
routeError: any
routeResponse: undefined | RouteData