Build an UNSIGNED Solana swap
solana_swap_buildBuilds an unsigned Jupiter swap transaction (base64) for the taker's PUBLIC address, including Lantern's 1.00% app fee (see feeDisclosure). Lantern never signs or holds keys: sign it with the agent's own wallet, then broadcast it yourself or with solana_send_transaction. Sanctioned addresses are refused. Free.
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>",
"taker": "<taker>"
},
"name": "solana_swap_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taker | Yes | The signing wallet's PUBLIC address | |
| amount | Yes | Amount in the input token's base units (integer string) | |
| inputMint | Yes | Solana mint address (base58) | |
| outputMint | Yes | Solana mint address (base58) | |
| slippageBps | No | Max slippage in basis points |