swap_build
Construct an unsigned swap transaction on Solana by specifying input and output tokens, amount, and slippage. Returns a transaction ready for local signing.
Instructions
Build an unsigned swap transaction with Dritan.
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>"
},
"name": "swap_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| walletPath | No | ||
| userPublicKey | No | ||
| inputMint | Yes | ||
| outputMint | Yes | ||
| amount | Yes | ||
| slippageBps | No | ||
| swapType | No | ||
| feeWallet | No | ||
| feeBps | No | ||
| feePercent | No |