Prepare a coin's launch
prepare_launchPrepares your launch, as the site's launch form does (the same checks, fees and rules): stores the picture and the coin's metadata and answers { mint, transaction, summary }, the transaction base64 for your wallet to sign (a pump.fun launch adds venue and transactions, the same one in a list). Sign it with your wallet without sending it and give it to submit_launch within the hour. The picture is imageUrl: an https address on a public host, fetched once, held to the site's picture rules (png, jpg, gif or webp, at most 4 MB). A coin with a prize names one: skin (an id from search_prizes), case, or basket (2 to 10 ids). With a dev buy your wallet's WBTC does not cover, it answers devSwap instead: sign its transaction and send it (send_transaction, or any Solana RPC), then prepare_launch again with devBuySats as given. pair: 'souvenir' makes the coin trade against $SOUVENIR instead of SOL, on Souvenir's own curve, while launch_options says souv.on; its first buy, if any, is firstBuySouv, raw $SOUVENIR from your wallet. On such a coin a first buy written in SOL is paid in $SOUVENIR: when your wallet lacks it, prepare_launch answers souvSwap instead. Sign its transaction, send it (send_transaction, or any Solana RPC) and wait until it is confirmed, then call prepare_launch again with the same arguments plus firstBuySouv set to souvSwap.target. If it answers souvSwap again with the same held, the swap is not in Souvenir's read yet: wait and ask again, and do not sign that one. Takes the token from sign_in, as token or as the request's Authorization: Bearer header. Refused with "Launching through the API is not open yet." (403 not_open) only if Souvenir pauses launching through the API. Launching a coin, in order: (1) sign_in_challenge with your wallet's address, sign its message with that wallet, then sign_in for a token; (2) launch_options, and search_prizes for the prize (or shopper_sample for a coin that picks its own prizes); (3) prepare_launch; (4) sign the transaction it answers with your wallet, without sending it, and give it to submit_launch; (5) launch_status until it answers confirmed: a pump.fun launch first answers split with a second transaction, which you sign (or sign and send) and give to submit_split, then launch_status again. Your wallet pays and signs everything: Souvenir never needs or asks for its private key.
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": {
"name": "<name>",
"symbol": "<symbol>",
"imageUrl": "<imageUrl>",
"shareBps": "<shareBps>"
},
"name": "prepare_launch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| case | No | One of Souvenir's cases instead, <id>@<version>. | |
| name | Yes | The coin's name. | |
| pair | No | What the coin trades against: sol, or souvenir ($SOUVENIR) on Souvenir's own curve while launch_options says souv.on. | sol |
| skin | No | The prize: an id from search_prizes, or a CS2 skin's market name. | |
| links | No | https links; without a website, the coin's Souvenir page. | |
| token | No | The token sign_in gave. Not needed when the request sends it as Authorization: Bearer <token>. | |
| venue | No | meteora: Souvenir's own curve (it needs feeBps). pump: pump.fun, while launch_options says venues.pump. | meteora |
| basket | No | A basket of prizes instead: round 1 draws the first, each draw picks the next. | |
| feeBps | No | The trading fee in basis points (meteora); on a BTC pump.fun launch, its creator fee, one of launch_options pump.feeLevels. | |
| ladder | No | A prize ladder instead: 2 to 10 places in order, 1st first, each its own winner at every draw (each worth no more than the place above). | |
| shield | No | The launch shield, on a BTC pump.fun launch while launch_options says pump.shield.on. | |
| symbol | Yes | Its ticker: letters and digits. | |
| charity | No | A charity coin: { address, name, url?, pledgeBps?, rounds?, ship?, variant? }, as the site's form sends it. | |
| curator | No | A shopper instead: the id of a sample pick this wallet asked for (shopper_sample). The coin picks each round’s prize itself from the sample’s brief and price band; round 1’s prize is the sample’s. Send nothing else in it. | |
| staking | No | Staking open from the start. | |
| tickets | No | How a holder's balance turns into draw tickets; without it, capped at 3% of the supply a wallet. | |
| imageUrl | Yes | The coin's picture: an https address on a public host; png, jpg, gif or webp, at most 4 MB. | |
| shareBps | Yes | The fee's share for the prize pot, in basis points (7500 by default on the site); 0 is a coin with no prize. | |
| bannerUrl | No | A banner for the top of its page, optional: https; png, jpg, gif or webp, at most 3 MB, three times as wide as tall, at least 600 px wide (a GIF is cut to 3:1 at its centre, its frames kept). | |
| holdHours | No | How long a coin must be held before it counts in a draw. | |
| shareWith | No | Souvenir's curve only: a tenth, a quarter or half of what the coin earns its creator goes to this wallet each time the creator is paid, fixed for good once the coin is launched (an app launching coins for its users keeps part of their creator earnings). Not at a 100% prize share, where the creator earns nothing. | |
| basketOdds | No | Each basket prize's chance in whole percents, in the basket's order (equal without). | |
| devBuySats | No | The devSwap's devSats, given back once its swap landed. | |
| volatility | No | meteora: Meteora's dynamic fee on top of the base fee. | |
| description | No | ||
| slippageBps | No | ||
| firstBuySouv | No | A first buy on a coin paired with $SOUVENIR, in raw $SOUVENIR (6 decimals) from your wallet, at most launch_options souv.maxFirstBuySouv. With firstBuyLamports it is the target souvSwap answered, sent again. | |
| launchWindow | No | meteora: the fee starts at 50% and falls to the coin's over 60 seconds. | |
| devBuyLamports | No | A dev buy on a BTC pump.fun launch, in lamports, while launch_options says pump.devBuy.on. | |
| firstBuyLamports | No | A first buy in lamports (Souvenir's curve, or a SOL pump.fun launch). |