Solana trading endpoints to quote a token swap and build an unsigned transaction, with output, price impact, slippage, and the route across indexed DEXs.
Quote a Solana swap, then build the unsigned transaction. The quote returns expected output, price impact, slippage bounds, and the route. The swap endpoint returns a transaction you can sign for DEXs such as Pump.fun and Raydium.
Endpoints
| Endpoint | Method & Path | What it returns |
|---|---|---|
| Build Swap | POST /v4/trading/swap | Build an unsigned swap transaction for DEXs such as Pump.fun and Raydium. |
| Swap Quote | GET /v4/trading/swap-quote | Expected output, price impact, slippage bounds, and the route. |
Other Endpoint Categories
You are on Trading Endpoints. This table lists the other Solana API reference groups, including tokens, trades, wallets, markets, Pyth prices, programs, and reference data.