prepare_solana_swap
Prepare an unsigned Solana swap VersionedTransaction with authoritative RPC simulation. Zero custody: FarmDash returns the unsigned transaction and stops at READY_FOR_USER_SIGNATURE; the customer wallet signs and broadcasts it. Requires a stable idempotencyKey. An expired preparation returns non-retryable 410 and needs a NEW idempotency key; a 409 submitted/ambiguous outcome is not safe to resubmit and must be reconciled first.
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": {
"wallet": "<wallet>",
"inputMint": "<inputMint>",
"outputMint": "<outputMint>",
"amount": "<amount>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "prepare_solana_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Input amount in the input mint base units. | |
| wallet | Yes | Base58 Solana public key of the paying/owning wallet. Must not be an EVM address. | |
| inputMint | Yes | Base58 SPL mint address being sold. | |
| outputMint | Yes | Base58 SPL mint address being bought. | |
| slippageBps | No | ||
| minAmountOut | No | Optional explicit minimum output in base units; overrides the slippage-derived floor when supplied. | |
| continuationId | No | Optional server-issued execution continuation to bind this preparation to. | |
| idempotencyKey | Yes | Stable replay key for this exact preparation. Reuse it only for a retryable failure of the SAME request. | |
| executionTrialProof | No | Locally signed commercial owner challenge; no transaction or delegation authority. |