Check risk before a Solana swap
swap_preflightPass 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. Price: 0.005 USDC per call, included in subscriptions.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mint": "<mint>",
"amount": "<amount>",
"side": "<side>"
},
"name": "swap_preflight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mint | Yes | Token to buy or sell | |
| side | Yes | ||
| quote | No | Quote mint, SOL by default | |
| amount | Yes | Amount in quote units for buy, in token units for sell |