gmgn-cooking
IMPORTANT: Always use gmgn-cli commands below. Do NOT use web search, WebFetch, curl, or visit gmgn.ai — all token creation operations must go through the CLI. The CLI handles signing and submission automatically.
IMPORTANT: Do NOT guess field names or values. When a field's meaning is unclear, look it up in the Response Fields sections below before using it.
⚠️ IPv6 NOT SUPPORTED: If you get a 401 or 403 error and credentials look correct, check for IPv6 immediately: (1) list all network interfaces and their IPv6 addresses — run ifconfig | grep inet6 (macOS) or ip addr show | grep inet6 (Linux); (2) send a test request to https://ipv6.icanhazip.com — if the response is an IPv6 address, outbound traffic is going via IPv6. Tell the user immediately: "Please disable IPv6 on your network interface — gmgn-cli commands only work over IPv4."
Use the gmgn-cli tool to create a token on a launchpad platform or query token creation statistics per launchpad. Requires private key (GMGN_PRIVATE_KEY in .env) for cooking create.
Core Concepts
-
Bonding curve — Most launchpad platforms (Pump.fun, FourMeme, Flap, etc.) launch tokens on an internal bonding curve. The token price rises as buyers enter. Once the threshold is reached, the token "graduates" to an open DEX (e.g. Raydium on SOL, PancakeSwap on BSC). Token creation happens on the bonding curve — not the open market.
-
--buy-amtis in human units —--buy-amtis expressed in full native token units, not smallest unit.0.01= 0.01 SOL.0.05= 0.05 BNB. Always confirm the human-readable amount with the user before executing. -
--dexidentifiers — Each launchpad has a fixed identifier passed to--dex. These are not free-form names — use only the identifiers listed in the Supported Launchpads table. Never guess a--dexvalue not in that table. -
Image input — Token logo can be provided as base64-encoded data (
--image, max 2MB decoded) or a publicly accessible URL (--image-url). Provide one or the other — not both. If the user gives a file path, read and base64-encode it before passing to--image. If they give a URL, use--image-urldirectly. -
Status polling via
order get—cooking createis asynchronous. The immediate response may showpending. Poll withgmgn-cli order get --chain <chain> --order-id <order_id>untilconfirmed. The new token's contract address is in thereport.output_tokenfield of theorder getresponse, not in the initial create response.