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:
xStocks creation
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:Trade event.
Only accept a launch after the receipt:
- Succeeded.
- Contains exactly one
LaunchCreatedlog from the expected hook. - Names the expected creator.
- Contains the signed target raise.
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.