safe_swap_solana
Construct an unsigned Solana spot swap transaction via Jupiter Swap API v2 after running mandatory pre-trade anti-rug protection. Hard-blocks buying tokens with active freeze authority, Token-2022 permanent delegate, or honeypot flags while keeping escape sells unblocked with warnings. Disclosed 0.20% official Jupiter platform fee applies on supported SOL/USDC/USDT pairs (0.00% on other pairs). Returns an unsigned base64 transaction and non-custodial signing receipt URL; never signs or requests private keys.
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": {
"inputMint": "<inputMint>",
"outputMint": "<outputMint>",
"amount": "<amount>",
"userPublicKey": "<userPublicKey>"
},
"name": "safe_swap_solana"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Exact integer amount in raw base units (lamports or smallest token decimals, e.g. "100000000" for 0.1 SOL). | |
| swapMode | No | Jupiter quote calculation mode: ExactIn (default, fixed input amount) or ExactOut (fixed output amount). | |
| inputMint | Yes | Solana base58 mint address of the token to spend (e.g. So11111111111111111111111111111111111111112 for WSOL). | |
| outputMint | Yes | Solana base58 mint address of the destination token to receive (audited before route construction). | |
| slippageBps | No | Maximum acceptable price slippage in basis points (1 to 1500; default 100 = 1.00%). | |
| userPublicKey | Yes | User Solana PUBLIC base58 wallet address that will sign locally. Never pass a private key. | |
| acknowledgeHighRisk | No | Set true only to acknowledge non-fatal WARN or elevated-score tokens. Critical rug-pull flags remain hard-blocked. |