Interface QuoteRequestCommon

interface QuoteRequestCommon {
    amount: string | number;
    inputMint: string;
    onlyDirectRoutes?: boolean;
    outputMint: string;
    slippageBps?: number;
    userPublicKey?: string;
}

Hierarchy (view full)

Properties

amount: string | number

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

inputMint: string
onlyDirectRoutes?: boolean

Prefer direct (single-hop) routes

outputMint: string
slippageBps?: number

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

userPublicKey?: string

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