Prepare a coin launch
phlece_prepare_launchBuilds the transactions that launch a new Phlece coin from the user's wallet: an approval of exactly the opening buy (if needed), then the launch. Checks every term the way phlece.fun does, checks the hookSalt against the live launch contract, uploads the picture to IPFS when given imageUrl, and simulates the launch when no approval comes first. Needs a hookSalt found on the user's machine with the Phlece CLI (its phlece_prepare_launch finds one by itself). Nothing is signed or sent; the terms are permanent once launched, so show them to the user first.
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": {
"wallet": "<wallet>",
"name": "<name>",
"ticker": "<ticker>",
"buyTaxPct": "<buyTaxPct>",
"sellTaxPct": "<sellTaxPct>",
"openingBuy": "<openingBuy>",
"hookSalt": "<hookSalt>"
},
"name": "phlece_prepare_launch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| name | Yes | ||
| pair | No | Paired coin symbol or address. Default USDC. phlece_list_launch_pairs lists the open ones. | |
| split | No | How the creator side (80% of every fee) is divided; whole percents adding up to 100. Default: all to the creator. | |
| ticker | Yes | 2 to 10 letters or digits. | |
| tiktok | No | A TikTok handle, stored as the description's last line. | |
| wallet | Yes | The wallet that sends the launch. It becomes the creator and receives the opening-buy coins. | |
| website | No | ||
| hookSalt | Yes | Found on the user's machine by the CLI for this exact wallet, pair and taxes. | |
| imageURI | No | An ipfs:// address already pinned (from the CLI's phlece_upload_image). | |
| imageUrl | No | https link to a PNG, JPG, WEBP or GIF, 5 MB at most; uploaded to IPFS. Or give imageURI. | |
| telegram | No | ||
| buyTaxPct | Yes | ||
| openingBuy | Yes | The creator's fee-free opening buy, in the paired coin (at least the pair's minimum). | |
| sellTaxPct | Yes | ||
| description | No | ||
| snipeExempt | No | Wallets that skip the 3-second opening surcharge. | |
| payoutWallet | No | Where creator fees are paid. Default: wallet. It can be moved later. |