---
title: "Get Solana Swap Quote"
method: GET
path: "/v1/solana/swap"
tags: ["Solana"]
---

# Get Solana Swap Quote

`GET /v1/solana/swap`

Get a quote for swapping tokens on Solana. This endpoint returns the expected output amount and swap details without executing the transaction.

**Important**: Swaps are only available on Solana mainnet.

**Authentication**: This endpoint requires backend authentication using the x-secret-key header.

## Query parameters

- `address` string, required — Solana wallet address that will execute the swap.
- `tokenIn` string, required — Input token mint address (the token being sold).
- `tokenOut` string, required — Output token mint address (the token being purchased).
- `amount` string, required — Amount of input token to swap, expressed in the smallest unit (e.g., lamports for SOL).
- `chainId` string, required

## Response `200`

Quote fetched successfully. Returns expected output amount and swap details.

- object — Response containing the swap quote details.
  - `result` object, required
    - `inputMint` string, required — Input token mint address.
    - `outputMint` string, required — Output token mint address.
    - `inputAmount` string, required — Amount of input token to swap.
    - `outputAmount` string, required — Expected amount of output token to receive.
    - `inputUsdValue` number — USD value of the input amount.
    - `outputUsdValue` number — USD value of the output amount.
    - `slippageBps` number, required — Slippage tolerance in basis points (1 bps = 0.01%).
    - `requestId` string, required — Quote request ID for executing the swap.

## Other responses

- `400` — Invalid request parameters or quote API error. Check the error message for details.
- `401` — Authentication required. Include x-secret-key or Authorization headers.
- `500` — Internal server error occurred while fetching the quote.

---

[API](https://skmtc.net/thirdweb/apis/thirdweb-api.md) · [All operations](https://skmtc.net/thirdweb/apis/thirdweb-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/thirdweb/thirdweb-api/revisions/fb4cb67da1c7/schema)
