Documentation
    Preparing search index...

    Type Alias SwapQuoteParam

    The amount of input or output token to swap from (depending on amountSpecifiedIsInput).

    The maximum/minimum of input/output token to swap into (depending on amountSpecifiedIsInput).

    The maximum/minimum price the swap will swap to.

    The direction of the swap. True if swapping from A to B. False if swapping from B to A.

    Specifies the token the parameter amountrepresents. If true, the amount represents the input token of the swap.

    An sequential array of tick-array objects in the direction of the trade to swap on

    Oracle data for the whirlpool

    TokenExtensions info for the whirlpool

    Optional. A reserve in case prices move in the opposite direction

    Optional. A parameter to generate this quote to a unix time stamp

    type SwapQuoteParam = {
        amountSpecifiedIsInput: boolean;
        aToB: boolean;
        fallbackTickArray?: PublicKey;
        oracleData: OracleData | null;
        otherAmountThreshold: BN;
        sqrtPriceLimit: BN;
        tickArrays: TickArray[];
        timestampInSeconds?: BN;
        tokenAmount: BN;
        tokenExtensionCtx: TokenExtensionContextForPool;
        whirlpoolData: WhirlpoolData;
    }
    Index

    Properties

    amountSpecifiedIsInput: boolean
    aToB: boolean
    fallbackTickArray?: PublicKey
    oracleData: OracleData | null
    otherAmountThreshold: BN
    sqrtPriceLimit: BN
    tickArrays: TickArray[]
    timestampInSeconds?: BN
    tokenAmount: BN
    tokenExtensionCtx: TokenExtensionContextForPool
    whirlpoolData: WhirlpoolData