Quote a token → token swap (app wallet)
swap_quoteQuote a token swap from the app wallet, routed by Jupiter and including the DFM platform fee, so users see the actual output amount before executing the trade.
Instructions
READ-ONLY. Price a swap of one token for another out of the app wallet, routed by Jupiter. The quote already includes the DFM platform fee, so outAmount is what the user actually receives — do not subtract a fee again when you report it. Amounts are RAW base units as a string (a u64 does not fit a JS number). Use this before swap so the human sees the rate first. For DEPOSITING into a fund use deposit, not this.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amountRaw | Yes | RAW base units of inputMint to sell (respect that mint's decimals). | |
| inputMint | Yes | Mint being sold. | |
| outputMint | Yes | Mint being bought. | |
| slippageBps | No | Slippage tolerance in bps; defaults to 50 (0.5%). |