Build Unsigned Jito Safe-Swap (v0 Transaction)
build_jito_safe_swapBuilds an unsigned Solana v0 VersionedTransaction via Jupiter v1 + atomic 65 bps SolGuard fee transfer + Jito bundleOnly=true MEV protection (supports side='buy' SOL->Token after anti-rug verification, or side='sell' Token->SOL post-unwrap Safe-Exit).
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": {
"userPublicKey": "<userPublicKey>",
"outputMint": "<outputMint>"
},
"name": "build_jito_safe_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | No | Trade direction: 'buy' (SOL->Token) or 'sell' (Token->SOL) | buy |
| sellPct | No | Optional wallet ATA percentage (1-100) when side='sell' | |
| amountRaw | No | Optional integer base units when side='sell' | |
| amountSol | No | Swap input amount in SOL (0.0001 to 10000) | |
| inputMint | No | Input mint Base58 (defaults to native WSOL on buy) | So11111111111111111111111111111111111111112 |
| outputMint | Yes | Target Solana token mint Base58 address | |
| slippageBps | No | Max slippage in basis points (10 to 3000, default 100) | |
| amountTokens | No | Optional UI token quantity when side='sell' | |
| userPublicKey | Yes | User Solana wallet Base58 public key (fee payer & signer) | |
| referrerPubkey | No | Optional partner Solana wallet Base58 pubkey for atomic 45/20 bps revenue split (earns 20 bps) |