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.
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"
}GET /tee/public-key
Fetch the TDX enclave's X25519 public key for client-side encryption. The SDK fetches this automatically; required only for custom client implementations.
Pool depth for a denomination bucket
Inspect the anonymity set for a standard denomination bucket before swapping — how many recent deposits share that bucket. A deeper pool means a larger crowd to hide in.