$PRIVY is live -

Skip to content
Docs

API reference

Quotes

Indicative swap quotes with slippage protection.

Quotes are indicative. When a trade executes, Privy takes its own fresh quote and locks the minimum output, so a quote from this endpoint is never executed directly.

Get a swap quote

GET/api/v1/quotePublic

Returns a fresh indicative quote. Quotes are not executable and are never stored: when a trade executes, Privy takes its own fresh quote server-side and locks the minimum output.

Parameters

  • inputMintstring · queryrequired

    Mint to spend.

  • outputMintstring · queryrequired

    Mint to receive.

  • amountstring · queryrequired

    Raw input amount in the input token’s smallest unit (lamports for SOL).

  • slippageBpsinteger · queryoptional

    Slippage tolerance in basis points, 10 to 5000. Defaults to 1500.

Response

  • inputMintstring

    Mint spent.

  • outputMintstring

    Mint received.

  • inAmountstring

    Raw input amount.

  • outAmountstring

    Expected raw output amount.

  • minimumOutAmountstring

    Minimum raw output after slippage.

  • slippageBpsinteger

    Slippage tolerance applied.

  • priceImpactnumbernullable

    Estimated price impact as a percentage.

  • inUsdValuenumbernullable

    USD value of the input.

  • outUsdValuenumbernullable

    USD value of the output.

  • routerstringnullable

    Routing engine that produced the quote.

  • quotedAtstring · date-time

    When the quote was produced.

curl "https://privy.ac/api/v1/quote?inputMint=So11111111111111111111111111111111111111112&outputMint=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v&amount=10000000"

Try it

Sends a real request
Example response
{
  "data": {
    "inputMint": "So11111111111111111111111111111111111111112",
    "outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "inAmount": "10000000",
    "outAmount": "1090191",
    "minimumOutAmount": "926662",
    "slippageBps": 1500,
    "priceImpact": -0.0339,
    "inUsdValue": 1.0902,
    "outUsdValue": 1.0901,
    "router": "iris",
    "quotedAt": "2026-10-09T21:40:02.118Z"
  },
  "requestId": "req_8f3a2c91d4e6b07f"
}