Interface JupiterQuoteRequest

interface JupiterQuoteRequest {
    amount: string | number;
    dexes?: string[];
    inputMint: string;
    maxAccounts?: number;
    onlyDirectRoutes?: boolean;
    outputMint: string;
    slippageBps?: number;
    swapMode?: "ExactIn" | "ExactOut";
    userPublicKey?: string;
}

Hierarchy (view full)

Properties

amount: string | number

Raw amount in base units (e.g., 1 SOL -> 1_000_000_000)

dexes?: string[]

Restrict to DEXes

inputMint: string
maxAccounts?: number

Maximum accounts in the swap transaction (Jupiter param)

onlyDirectRoutes?: boolean

Prefer direct (single-hop) routes

outputMint: string
slippageBps?: number

Slippage in basis points (e.g., 50 = 0.5%). Must be 0-10000

swapMode?: "ExactIn" | "ExactOut"

Choose price/size tradeoff; defaults to SMART

userPublicKey?: string

If provided, routes may be tailored to this wallet (e.g., account state)