const params = {
name: "My Token",
ticker: "MINE",
description: "...",
imageUrl: "https://...",
telegram: "",
twitter: "",
website: "",
creatorFeeSplitBps: 7000,
gainBps: 50_000,
targetRaise: parseEther("3"),
antiSnipeDuration: 40,
startTime: 0n,
}
// To prebuy, pass `value: parseEther("0.1")` (or any amount) on the writeContract call below.
const hash = await walletClient.writeContract({
address: HOOK,
abi: INKY_PUMP_HOOK_ABI,
functionName: "createLaunch",
args: [params],
value: 0n,
})
const receipt = await publicClient.waitForTransactionReceipt({ hash })
// Parse the LaunchCreated event from receipt.logs to get the launchId and token address