Tools

swap_preflight

1 credit · 0.005 USDC

GET /swap_preflight

Pass the token mint, side (buy or sell), amount in quote units for buy or token units for sell, and optional quote mint (SOL by default). Checks route price impact, historical pool sandwich share, Token-2022 transfer fees, hooks, permanent delegate, mint and freeze authority. Returns a verdict with reasons and an assessment (ok, unverified, high_slippage_risk, high_sandwich_risk, blocked). Does not sign, execute or guarantee a swap; missing history remains unverified.

Task guide: Check risk before a Solana swap

ParameterTypeDescription
amountrequirednumberAmount in quote units for buy, in token units for sell
mintrequiredstringToken to buy or sell
quotestringQuote mint, SOL by default
siderequiredbuy | sell
curl "https://api.dexra.dev/swap_preflight?amount=100&mint=DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263&quote=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v&side=buy" \
  -H "Authorization: Bearer dxr_…"

Try it in the Playground