Sell a coin
cook4fun_sellSell cook4.fun coins for ETH by specifying an exact amount, percentage, or entire balance. Includes auto-approval and slippage protection.
Instructions
Sell a cook4.fun coin back to ETH. Specify an exact token amount, a percentage, or all. Auto-approves and is slippage-protected.
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": {
"token": "<token>"
},
"name": "cook4fun_sell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Sell the entire balance | |
| token | Yes | Coin address (0x…) or $TICKER | |
| percent | No | Percent of balance to sell | |
| slippageBps | No | ||
| amountTokens | No | Exact number of tokens to sell |