Execute Solana Swap (v2)

Executes a token swap on Solana using the v2 API. The collateral parameter chooses between SOL (default) and USDC as the trading asset. Either amount or amount_raw must be provided.
Requires X-API-KEY header.
Plans Included = Builder, Architect, Enterprise Cost per request = 10 credits.

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

Trade direction.

Allowed:
string
required

Token mint address.

string
enum
Defaults to sol

Trading collateral asset. "sol" (default) trades against WSOL; "usdc" trades against the canonical Solana USDC mint (EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v). The amount field is interpreted using the collateral's decimals.

Allowed:
number

Human-readable amount in the chosen collateral. Either amount or amount_raw must be provided.

integer

Raw amount in collateral base units (lamports for SOL, micro-USDC for USDC). Either amount or amount_raw must be provided.

number
required

Slippage as percentage (0.5 = 0.5%).

integer

Priority fee in lamports. If not set, USM uses recommended priority.

integer

Jito tip amount in lamports. If not set, no Jito tip is applied.

integer

Astralane tip amount in lamports. If not set, no Astralane tip is applied.

Responses

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