Build Swap

Solana API endpoint for building token swaps. Build and return unsigned transactions for direct swaps on DEXs like Pump.fun, Raydium and more.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Build Solana swap transactions using this API endpoint. Generate unsigned transactions for direct swaps across DEXs like Raydium, Meteora and Pump.fun with slippage protection, fee configuration and optional gasless execution.

Supports protocol routing, aggregator fallbacks, and simulation, returning a base64 transaction ready for signing and submission. Ideal for wallets, trading apps, and DeFi integrations.

Direct protocol integrations with Raydium, Meteora, Pump.fun and others with aggregator fallbacks (Jupiter) for maximum route coverage.

This route is currently in beta and is subject to change.

Body Params
string
required
double
required

Amount to swap (in UI units)

boolean | null

Auto-calculate optimal slippage

boolean | null

Use Vybe fee payer for gas

string
required
string
required
string | null

Partner identifier for fee routing

string | null
string | null
enum
string
enum
Allowed:
boolean | null

Simulate transaction without building

double | null

Slippage tolerance (percentage)

double | null

Service fee percentage (e.g., 1 for 1%)

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json