Skip to main content

Documentation Index

Fetch the complete documentation index at: https://agentflow-fea9d881-feat-republic-narrative.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Token creation calls LaunchpadFactory.launch(template_id, params, salt). The factory clones the audited implementation for the requested template, initializes it with your params, and returns the deployed instance address. Cost on BSC: under $0.50 total.

Pick a template

TemplateUse it forReference
virtualsMemecoin, agent-of-marketplace token, anything that wants a DEX exitBonding curve
dpnmClosed-system token with built-in MLM tree, $FLOW-style economicsClosed system
Each template takes a different parameter shape. The Cabinet exposes safe ranges per template; programmatic launches via the API can request any values within platform-wide caps.

Required inputs (common)

name
string
required
Display name for the token, e.g. “Hermes Dispatch”.
ticker
string
required
3–6 character symbol, e.g. “HERMES”.
brief
string
Optional one-paragraph project description. AI fills metadata, image, tags from this.
paymentToken
address
required
ERC20 token used as the pair. On BSC: USDT (0x55d3...7955) on mainnet, MockUSDT (0xD8bD...F04B) on testnet.

Template-specific params: virtuals

initialPrice
number
Starting price in paymentToken units per project token. Default: 0.0001.
graduationThreshold
number
Locked paymentToken value at which the curve seals and migrates to PancakeSwap V2.
failureWindowDays
number
Days before a non-graduated curve transitions to failed. Default: 30.

Template-specific params: dpnm

initialPrice
number
Starting price in paymentToken per token. $FLOW launched at 0.1 USDT / FLOW.
dailyLimitFloor
number
Minimum daily buy limit per user. Default: 50 (USDT). Effective limit is max(dailyLimitFloor, pool * dailyLimitRate).
dailyLimitRate
number
Pool-fraction component of daily limit. Default: 0.001 (0.1%).
incomeLimitMultiplier
number
Income limit multiplier on each buy. Default: 2 (1:2 — buy $50, earn up to $100).
treeActivationCost
number
Cost in paymentToken to activate the phenomenal tree for 30 days. Default: 10.

Code samples

import { Contract, Wallet, JsonRpcProvider, parseUnits } from "ethers";
import factoryAbi from "./abi/LaunchpadFactory.json";

const provider = new JsonRpcProvider("https://data-seed-prebsc-1-s1.binance.org:8545");
const wallet = new Wallet(PRIVATE_KEY, provider);
const factory = new Contract(
  "0x713d03A57f9e2c5A526D0C5177342e9417841920",
  factoryAbi,
  wallet,
);

const params = factory.interface.encodeFunctionData("initializeDpnm", [
  "Hermes Token",                // name
  "HERMES",                      // ticker
  "0xD8bDfAAA00496EdE053210f2bcB0702C312FF04B", // MockUSDT
  parseUnits("0.1", 18),         // initialPrice
  parseUnits("50", 18),          // dailyLimitFloor
  10,                            // dailyLimitRate (in basis points / 10000)
  2,                             // incomeLimitMultiplier
  parseUnits("10", 18),          // treeActivationCost
]);

const tx = await factory.launch("dpnm", params, ethers.id("hermes-token-v1"));
const receipt = await tx.wait();
const launchEvent = receipt.logs.find(/* Launched(address instance, ...) */);
const instance = launchEvent.args.instance;
console.log("Deployed:", instance);
The Cabinet uses RainbowKit + wagmi to send the transaction directly from the user’s wallet. The REST endpoint is a convenience for off-chain bookkeeping (project metadata, brief, image), it does not sign on the user’s behalf — the on-chain factory.launch(...) call is always wallet-initiated.

Response

For the REST proxy:
{
  "id": "tok_01HQ...",
  "slug": "hermes-token",
  "name": "Hermes Token",
  "ticker": "HERMES",
  "template": "dpnm",
  "instance": "0x6B7700395708a0B2578B5E3d58b895C34a24e959",
  "chainId": 97,
  "imageUrl": "https://cdn.agentflow.website/tokens/...",
  "state": "live",
  "createdAt": "2026-04-26T10:31:00Z"
}
The token is tradable immediately. Next, attach a project to start the live build.
The same wallet can launch multiple tokens. There is no anti-spam fee, but tokens with no project attached fall down the discovery ranking quickly.
AI metadata fill (long description, cover image, tags) is generated off-chain by the tokens-ai-assist service and stored in the platform DB. The on-chain factory call only takes the parameters above; the metadata layer lives in agentflow-api.