CallingDocumentation Index
Fetch the complete documentation index at: https://actfun.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
createToken on the LaunchpadFactory deploys two contracts at once: a LaunchToken ERC-20 and a TokenLauncher that handles Phase 1 mining and Phase 2 trading. The factory registers both addresses in its on-chain token list and transfers mint authority to the launcher. You pay a creation fee (denominated in ARC) as msg.value to prevent spam deployments.
Function signature
LaunchpadFactory at 0x6Ac3CaF79A5d68D259795380F012f922476A1721 on Arc Testnet (Chain ID 5042002)
Required value
You must send at leastcreationFee() ARC with the call. Read the current fee before submitting:
msg.value is forwarded to the protocol feeRecipient. If you send more than the minimum the excess is also forwarded there is no refund mechanism in the factory.
Parameters
Human-readable token name, e.g.
"DogeFun". Must be non-empty.Ticker symbol, e.g.
"DOGEFUN". Must be non-empty.URL or emoji used as the token’s avatar in the UI, e.g.
"https://example.com/doge.png" or "🐶". Can be an empty string the contract does not validate it.Total token supply cap in token units with 18 decimals. For example, one million tokens is
1_000_000 * 1e18. Must be greater than zero.Tokens minted to the caller on each successful
mine() call, in units with 18 decimals. Must be greater than zero and less than or equal to maxSupply.Per-wallet cooldown in seconds between consecutive
mine() calls. Must be greater than zero. Set to 60 for a one-minute cooldown.Maximum tokens a single wallet may mine within any rolling 24-hour window, in units with 18 decimals. Must be greater than or equal to
mineAmount, meaning each wallet can mine at least once per day.ARC (in wei) the caller must send with each
mine() call. These fees accumulate in the TokenLauncher and seed the AMM liquidity pool on graduation. Set to 0 for free mining (though the factory’s creation fee still applies).Return values
Address of the newly deployed
LaunchToken ERC-20 contract.Address of the newly deployed
TokenLauncher contract. This is the only address that can mint tokenAddr tokens.Validation rules
The factory enforces the following checks and reverts with the shown messages if any fail:| Condition | Revert message |
|---|---|
msg.value >= creationFee | "LaunchpadFactory: creation fee required" |
maxSupply > 0 | "LaunchpadFactory: maxSupply must be > 0" |
mineAmount > 0 && mineAmount <= maxSupply | "LaunchpadFactory: invalid mineAmount" |
cooldown > 0 | "LaunchpadFactory: cooldown must be > 0" |
dailyMax >= mineAmount | "LaunchpadFactory: dailyMax < mineAmount" |
bytes(name).length > 0 && bytes(symbol).length > 0 | "LaunchpadFactory: empty name/symbol" |
TokenCreated event
createToken call. Index on creator to find all tokens launched by a particular address.
mineAmount, cooldown, and dailyMax are not included in the event. Read them from the TokenRecord returned by getToken(index) or directly from the TokenLauncher contract’s immutable public state variables.