prepare_sell
Build an unsigned sell transaction for a pump.fun position, sized as a percentage of your holdings, so you can sign and broadcast the exit yourself.
Instructions
Build an UNSIGNED sell transaction for a pump.fun position (take-profit or manual exit), sized as a percentage of your current holdings of that token. Like prepare_buy, this never signs or broadcasts anything — you sign the returned transaction yourself. No risk gate applies to exits (you're always free to sell).
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>"
},
"name": "prepare_sell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mint | Yes | Token mint address to sell. | |
| slippagePct | No | Override default slippage tolerance (%). | |
| percentOfHoldings | No | Percent of your current token balance to sell. Defaults to 100 (full exit). |