Build Unsigned 0.40% Solana DEX Swap Tx
build_solana_swap_txBuild an unsigned Solana VersionedTransaction (base64) for any Solana SPL swap or Pump.fun CA at 0.40% fee (half Phantom's 0.85%). Caller signs locally.
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": "build_solana_swap_tx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Human-readable amount of input token (e.g. 1.5). | |
| inputMint | Yes | Source Solana token ticker ('sol','usdc','usdt','bonk','pengu') or mint address. | |
| outputMint | Yes | Destination Solana token ticker or mint address. | |
| slippageBps | No | Slippage in bps (10..500, default 50). | |
| userPublicKey | Yes | Caller's Solana wallet public key. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| engine | No | ||
| feeBps | No | ||
| swapTransaction | No |