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…
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