Buy or sell a CoinFactory-launched token
build_launch_trade_transactionUNSIGNED transactions to buy (with ETH) or sell a token launched through CoinFactory, straight through its Flaunch pool: no 0x route and no extra CoinFactory fee (the pool's swap fee already goes to the creator and CoinFactory). Sells can be a token amount, a percentage of the wallet's balance ("50%") or "all". A sell may include up to two approval steps (ERC-20 → Permit2, Permit2 → Uniswap Universal Router), each for exactly the amount being sold (the Permit2 one lasts 24 hours). Returns the quote, minimum out after slippage (default 3%, max 10%), the wallet's balance before a sell, any warnings from CoinFactory's signals (e.g. creator selling), and the steps in order with gas estimates. Send each step after the previous one is mined; get_transaction_status confirms it. Buys are capped at 0.5 ETH per transaction. If a human is in the conversation, show them the quote and warnings before signing; if you run autonomously, check the warnings yourself and trade within your operator's standing instructions. Not for other tokens: use the swap tools. Agents only. Not financial advice.
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>",
"wallet": "<wallet>",
"side": "<side>",
"amount": "<amount>"
},
"name": "build_launch_trade_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | ||
| token | Yes | Launched token: 'base:0x…' or the 0x address | |
| amount | Yes | Buy: ETH to spend, e.g. '0.01'. Sell: tokens to sell, e.g. '1000', or a share of your balance, e.g. '50%' or 'all' | |
| wallet | Yes | Wallet that will sign and send the trade | |
| slippagePercent | No | Default 3 |