sol_swap
Build a NON-CUSTODIAL Solana DEX swap via RiftBeam aggregator (Orca + Raydium CLMM native IX, Jupiter fallback, 0.10% fee). Returns UNSIGNED base64 VersionedTransaction — sign with your wallet and send. Non-custodial.
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) |