Type alias QuoteResult

QuoteResult: {
    isSupported: boolean;
    steps: {
        protocol: string;
        chainId: ChainId;
        toChainId: ChainId;
        fromToken: Web3Address;
        toToken: Web3Address;
        swapAddress: Web3Address;
        functionName: string;
    }[];
    stepsCount: number;
    price?: string;
    minPrice?: string;
    fromTokenUsdPrice?: string;
    fromTokenAmount?: string;
    fromTokenAmountUsdValue?: string;
    toTokenUsdPrice?: string;
    toTokenAmount?: string;
    toTokenAmountUsdValue?: string;
    expectedSlippage?: string;
    minToTokenAmount?: string;
    from?: Web3Address;
    to?: Web3Address;
    data?: string;
    value?: string;
    messages: {
        type: "info" | "warning";
        message: string;
    }[];
    gasFee?: string;
    gasFeeUsdValue?: string;
    feeBps?: string;
    feeInFromToken?: number;
    bridgeFeeUsdValue?: string;
    feeUsdValue?: string;
}

Type declaration

  • isSupported: boolean

    Whether the route is supported or not.

  • steps: {
        protocol: string;
        chainId: ChainId;
        toChainId: ChainId;
        fromToken: Web3Address;
        toToken: Web3Address;
        swapAddress: Web3Address;
        functionName: string;
    }[]

    The steps this route will take. Used to show the route breakdown.

  • stepsCount: number

    Number of steps the route will take.

  • Optional price?: string

    Expected price of toToken.

  • Optional minPrice?: string

    Minimum accepted price for a successful transaction.

  • Optional fromTokenUsdPrice?: string

    Price of fromToken in US dollars.

  • Optional fromTokenAmount?: string

    Amount of fromToken to send.

  • Optional fromTokenAmountUsdValue?: string

    Value of fromTokenAmount in US dollars.

  • Optional toTokenUsdPrice?: string

    Price of toToken in US dollars.

  • Optional toTokenAmount?: string

    Expected amount of toToken to receive.

  • Optional toTokenAmountUsdValue?: string

    Value of toTokenAmount in US dollars.

  • Optional expectedSlippage?: string

    Expected slippage calculated from fromTokenAmountUsdValue and toTokenAmountUsdValue. If the value returned is < 0, the zap is expected to result in positive slippage.

  • Optional minToTokenAmount?: string

    Minimum amount of the to token the user is willing to accept for a successful transaction.

  • Optional from?: Web3Address

    User address who should be sending the tx.

  • Optional to?: Web3Address

    Contract address where the unsigned transaction needs to be sent.

  • Optional data?: string

    Unsigned transaction data.

  • Optional value?: string

    Amount of native tokens that need to be sent.

  • messages: {
        type: "info" | "warning";
        message: string;
    }[]
  • Optional gasFee?: string
  • Optional gasFeeUsdValue?: string
  • Optional feeBps?: string
  • Optional feeInFromToken?: number

    Service fee denoted in the 'from' token units

  • Optional bridgeFeeUsdValue?: string

    Bridge fee value in US dollars.

  • Optional feeUsdValue?: string

    Service fee value in US dollars.

Generated using TypeDoc