Custom swap

Builds a swap transaction with optional routing constraints and on-chain execution mode.

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
string

Optional provider slug to constrain execution to a specific venue family.

string

Optional on-chain program ID to constrain execution.

string

Optional pool address to force execution through a specific pool.

string

Optional intermediary pool address for constrained multi-hop execution.

boolean

When true, builds the safer on-chain routed execution flow.

Responses

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