Get Solana Swap Quote (v2)

Fetches a quote for buying or selling tokens on Solana. For buy: swaps the chosen collateral (SOL or USDC) for the specified token. For sell: swaps the specified token for the chosen collateral (SOL or USDC).
Plans Included = Builder, Architect, Enterprise Cost per request = 5 credits.

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

Trade type.

Allowed:
string
required

Token mint address to buy or sell.

string
enum
Defaults to sol

Trading collateral asset. "sol" (default) trades against WSOL; "usdc" trades against the canonical Solana USDC mint (EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v). Determines the decimals used for the amount field.

Allowed:
number

Human-readable amount in the chosen collateral on buy (1.5 SOL or 1.5 USDC), or in token units on sell. Converted server-side to collateral base units (lamports for SOL, micro-USDC for USDC).

string

Raw amount in collateral base units (lamports for SOL, micro-USDC for USDC, or token's smallest unit on sell). Overrides amount if provided.

Responses

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