Build sell transaction
build_sell_txBuild an UNSIGNED sell transaction. Pass tokenAmount, tokenAmountRaw, or percent (1–100) of the wallet balance. Sign locally with wallet. Does not broadcast.
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": {
"mint": "<mint>",
"wallet": "<wallet>"
},
"name": "build_sell_tx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mint | Yes | Base58 Solana address. A public key, never a private key. | |
| amount | No | Alias of tokenAmount. | |
| wallet | Yes | Seller public key. This wallet must sign. | |
| percent | No | Sell this percent of the wallet balance. | |
| slippageBps | No | Slippage in basis points. 300 = 3%. Default 300. | |
| tokenAmount | No | Tokens to sell, decimal UI amount. | |
| tokenAmountRaw | No | Token amount in base units. | |
| skipSimulationCheck | No | Return the unsigned transaction even if simulation fails. | |
| priorityFeeMicroLamports | No | Priority fee override in micro-lamports per compute unit. |