Trading Endpoints

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

EndpointMethod & PathWhat it returns
Build SwapPOST /v4/trading/swapBuild an unsigned swap transaction for DEXs such as Pump.fun and Raydium.
Swap QuoteGET /v4/trading/swap-quoteExpected 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.