Solrouter
API ReferenceSwaps

Quote a private swap

Price a private swap before executing it. Returns the expected output after Solrouter's spread plus anonymity-set guidance — whether the amount snaps to a standard denomination bucket (strong privacy) or is an off-bucket amount with a unique on-chain fingerprint.

GET
/agents/v1/quote
X-PAYMENT<token>

x402 USDC-on-Solana payment payload

In: header

Query Parameters

fromMint*string
toMint*string
amount*string

input amount in base units

slippageBps?integer

Response Body

application/json

application/json

curl -X GET "https://example.com/agents/v1/quote?fromMint=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v&toMint=So11111111111111111111111111111111111111112&amount=1000000&slippageBps=50"
{
  "fromMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "toMint": "So11111111111111111111111111111111111111112",
  "amount": "1000000",
  "slippageBps": 50,
  "expectedOut": "6630000000",
  "rawJupiterOut": "6663316583",
  "spreadBps": 50,
  "priceImpactPct": "0.04",
  "routePlanLength": 2,
  "bucketed": true,
  "bucketLabel": "USDC_1",
  "nearestBucket": "USDC_1",
  "privacyNotes": "amount snaps to standard denomination — strong anonymity-set"
}
{
  "error": "missing_required_fields"
}