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).
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). |