Function useEvmRoute

  • 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: SkipSupportedAsset
    • Optional sourceChain: SkipSupportedChainData
    • Optional destinationAsset: SkipSupportedAsset
    • Optional destinationChain: SkipSupportedChainData
    • Optional 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;
    })[]