Contract event attribution
Hooks that support referral write functions can emit:createLaunchWithReferral; the deprecated Ink hook does not. Always choose the selector through the launch’s deployment ABI.
Permanent fee-earning binding
The current fee program binds a referred wallet to a code with a short-lived challenge and wallet signature. The binding is chain-scoped and permanent once accepted. This is the record used for fee accounting. Use the Referral APIs for challenge, accept, dashboard, activity, and eligibility routes.What creators need to know
- A token does not need special launch settings to allow referral accounting.
- Do not infer fee entitlement from a
Referrallog alone. - Do not promise that every historical hook supports the same referral function.
- Keep pending, uncertain, finalized, accrued, claimable, reserved, and paid amounts separate in a partner dashboard.
- The referral program does not change the trader’s curve fee.
Indexing contract events
Listen on every tradeable deployment returned byGET /api/capabilities, not just the active creation hook. Join referral and trade logs by chain, hook, launch ID, trader, transaction, and log order. Save the block hash so a reorg can be handled.
See Read and Index for the canonical event topics and checkpoint rules.