Swap Quote (Read-Only)
pumpfun_quote_swapRead-only price quote for a pump.fun AMM (PumpSwap) swap. No signing or tx sending. One of inputMint/outputMint must be wSOL (So11111111111111111111111111111111111111112). Only GRADUATED coins have an AMM pool; for a coin still on its bonding curve use get_bonding_curve instead. Pricing runs on the pool effective quote reserves (quote vault balance + pool.virtual_quote_reserves); the base side is the raw base vault balance. Returns amountOut, priceImpactBps, route, expiresAtMs, plus the reserves the quote was computed from so the number can be reproduced.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | mainnet | |
| amountIn | Yes | Input amount in raw base units (lamports for SOL). | |
| inputMint | Yes | Input token mint (base58). | |
| outputMint | Yes | Output token mint (base58). | |
| slippageBps | No | Slippage tolerance in basis points (default 100 = 1%). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| route | Yes | AMM pool address the quote routes through (base58) | |
| amountOut | Yes | Expected output amount in raw base units | |
| expiresAtMs | Yes | Epoch ms after which the quote is stale | |
| base_reserve | No | Raw base vault balance. Unchanged by the virtual-reserve rollout. | |
| quote_reserve | No | Raw quote vault balance, before virtual reserves are added. | |
| priceImpactBps | Yes | Price impact in basis points | |
| virtual_quote_reserves | No | Pool.virtual_quote_reserves. Quote-side liquidity the pool carries outside its vault. 0 on non-launchpad pools. | |
| effective_quote_reserve | No | quote_reserve + virtual_quote_reserves. This is what the quote is priced against. |