Best swap

Builds the best available swap transaction.

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

Wallet that will pay fees and sign the swap transaction.

string
required

Input mint address to swap from.

string
required

Output mint address to swap into.

integer
required
≥ 1

Raw input token amount in base units.

integer
required
≥ 1

Maximum allowed slippage in basis points.

string
required

Target chain for transaction building. Use solana.

integer
required
≥ 1

Priority fee in lamports to include in the built transaction.

boolean
required

Whether to build the transaction with Jito-compatible fee behavior.

boolean

When true, prefers passive routing behavior if supported.

boolean

Automatically unwraps WSOL to SOL after swap completion when applicable.

fee
object
Responses

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