Skip to content
DegenX Docs
Arc mainnetOpen app

Create a launch

Use the full Launchpad ABI to encode createLaunchpadToken(tokenConfig, metadataConfig, launchConfig, snipeConfig). It returns the token and gauge addresses.

Read isAccessible(creator) and isTokenCreationAllowed(creator) from AccessRegistry. Read creationCost(), the selected quoteTokens(USDC) configuration, and launchTermsHash(USDC) from the launchpad. Native USDC for the creation fee and ERC-20 USDC for an initial buy draw from the same underlying balance, so budget both plus gas.

struct LaunchConfig {
address quoteToken;
address feeRecipient;
uint64 creatorTax;
uint32 snipeTaxSeconds;
bool buybackEnabled;
bytes32 salt;
bytes32 expectedTerms;
address[] snipeExemptions;
}
  • quoteToken: approved USDC address on Arc; fixed for the launch.
  • feeRecipient: initial creator fee wallet; zero selects the creator.
  • creatorTax: 1e18-scaled rate, at most 10%, with exact one-pip alignment for v4.
  • snipeTaxSeconds: 1–60 for an explicit duration; 0 inherits the current default, currently 5 seconds.
  • buybackEnabled: initial preference for funding buybacks from the creator-side fee remainder.
  • salt: creator-scoped CREATE2 salt. Use predictLaunchAddresses(creator, salt) for predicted addresses.
  • expectedTerms: the freshly read terms hash. Setting zero opts out of terms pinning; integrations should pin reviewed terms.
  • snipeExemptions: up to 32 additional non-zero addresses, immutable for the launch.

The ABI specifies the exact token and metadata tuples. Validate names, symbols, links and metadata against the contract’s byte-length bounds. Contract limits include name 64 bytes, symbol 32, link fields 256, description 1,000, and metadata 2,048.

SnipeConfig contains quoteAmount and minAmountOut. For an initial USDC purchase, approve the quote amount to the launchpad beforehand and supply a non-zero token minimum. The initial creator purchase is exempt from anti-snipe tax; ordinary trading fees and any creator tax still need to be included in the quote.

On Arc, send only the native creation fee as msg.value; the initial buy’s USDC is pulled through the ERC-20 interface. Do not add the six-decimal quote amount to native msg.value.

Decode NewToken(creator, token, gauge, quote, curve). Read the gauge’s parameters and actual anti-snipe duration. If the initial purchase completed the curve, the gauge may already be graduated in the same transaction; index the entire receipt and final state rather than assuming every new token is active.