Skip to main content
Resolve the deployment before building a transaction. New native launches use activeCreationDeployment from /api/capabilities. xStocks launches use the selected asset’s deployment.hookAddress from /api/xstocks/quote-assets.

Native creation

msg.value is the optional creator prebuy. Send zero for no prebuy. The call creates the token, records launch state, emits metadata, and performs the prebuy in one transaction when value is nonzero. Use createLaunch as the default partner entry point. The active native Ink and Robinhood hooks also expose:
The deprecated Ink hook does not support this referral creation selector. Runtime deployment selection is required.

xStocks creation

Approve the selected wrapper to the exact per-asset hook before the call when quotePrebuy is nonzero. params.targetRaise and quotePrebuy use wrapper units. Send no native value. See xStocks Launches for the complete flow.

Parameters

The total launch token supply is 1,000,000,000 tokens with 18 decimals.

Caller and recipient

The direct caller becomes the creator and fee recipient. Launch tokens from an optional prebuy go to that caller on the ordinary entry points. createLaunchFor exists for controlled sponsor flows, but it changes only the prebuy recipient. The caller still becomes creator. Do not use a backend relayer unless this ownership outcome is intended.

Receipt events

Every successful launch emits:
The hook also emits the resolved sale split and the exact snapshotted pool key. A prebuy emits a Trade event. Only accept a launch after the receipt:
  1. Succeeded.
  2. Contains exactly one LaunchCreated log from the expected hook.
  3. Names the expected creator.
  4. Contains the signed target raise.
Save the emitted token and launch ID with the chain, hook, and transaction hash.

Indexing

The read API updates after chain ingestion. A successful receipt can appear before /api/token returns the new token. Show confirmed, indexing and poll by address. Do not submit another launch.

Common failures

For a complete viem example, use the Launchpad Quickstart.