sol_swap
Build non-custodial Solana swaps via Jupiter routing. Returns unsigned transactions for your wallet to sign, ensuring funds remain under your control.
Instructions
Build a NON-CUSTODIAL Solana DEX swap via Jupiter: returns an UNSIGNED base64 transaction — sign with YOUR OWN wallet and send to any Solana RPC. Server never touches funds. 0.3% on-chain routing fee.
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": {
"from": "<from>",
"to": "<to>",
"userPublicKey": "<userPublicKey>"
},
"name": "sol_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | sol, usdc or base58 mint | |
| from | Yes | sol, usdc or base58 mint | |
| amount | No | Human amount (sol/usdc only) | |
| amountRaw | No | Base units (any mint) | |
| slippageBps | No | 1-1000, default 50 | |
| userPublicKey | Yes | Your Solana wallet address (signs the tx) |