Function useSkipTransfer

  • React hook to get data for a Skip API powered transfer

    Parameters

    Returns {
        isLoadingMessages: boolean;
        isLoadingRoute: boolean;
        isLoadingSkipGasFee: boolean;
        messages: null | SkipMsgV2[] | SkipMsg[];
        msgsError: null | string;
        notSupported: boolean;
        refresh: (() => Promise<any>);
        routeError: any;
        routeResponse: undefined | {
            amountIn: string;
            amountOut: string;
            destinationAsset: SkipSupportedAsset;
            destinationAssetChain: SkipSupportedChainData;
            operations: any[];
            response: RouteResponse;
            sourceAsset: SkipSupportedAsset;
            sourceAssetChain: SkipSupportedChainData;
            transactionCount: number;
        };
        skipGasFeesData: undefined | Readonly<{
            gasFees: string[];
            gasFeesAmount: StdFee[];
            gasFeesError: undefined | string;
            usdGasFees: (undefined | BigNumber)[];
        }>;
        userAddress: string;
        userAddressList: null | string[];
        userAddressListError: undefined | string;
    }

    • isLoadingMessages: boolean
    • isLoadingRoute: boolean
    • isLoadingSkipGasFee: boolean
    • messages: null | SkipMsgV2[] | SkipMsg[]
    • msgsError: null | string
    • notSupported: boolean
    • refresh: (() => Promise<any>)
        • (): Promise<any>
        • Returns Promise<any>

    • routeError: any
    • routeResponse: undefined | {
          amountIn: string;
          amountOut: string;
          destinationAsset: SkipSupportedAsset;
          destinationAssetChain: SkipSupportedChainData;
          operations: any[];
          response: RouteResponse;
          sourceAsset: SkipSupportedAsset;
          sourceAssetChain: SkipSupportedChainData;
          transactionCount: number;
      }
    • skipGasFeesData: undefined | Readonly<{
          gasFees: string[];
          gasFeesAmount: StdFee[];
          gasFeesError: undefined | string;
          usdGasFees: (undefined | BigNumber)[];
      }>
    • userAddress: string
    • userAddressList: null | string[]
    • userAddressListError: undefined | string