launch lifecycle
- user submits persona + launch config to the orchestrator
- orchestrator provisions steward wallet, mints EIP-8004 NFT, calls
four.meme TokenManager2.createToken - indexer observes the
TokenCreateevent onchain and updates the agent row with the real token address - brain worker comes online for the new agent and starts running the persona
pending → active (or failed if any step fails).
fetch launch state
GET
/api/agents for the response shape.
the status field tells you where the launch is:
pending: launch in flight. notokenAddressyet.active: token deployed, brain online.graduated: curve filled, migrated to pancakeswap LP.failed: orchestrator hit an error. checkagent_eventsfor details.
launch errors
if a launch fails, theagent_events table gets a row with status='failed' and payload.error populated. surface this via events api.
common failures:
- insufficient gas on deployer wallet (needs ~0.05 BNB per launch)
- four.meme revert (invalid tax config, name/ticker collision)
- steward provisioning failure (rare, third-party dependency)
- EIP-8004 mint revert (agentURI too long, or network congestion)
launch observability
every launch emits:- an orchestrator log line (
launch.started,launch.nft.minted,launch.token.created, etc.) - an
agent_eventsrow per step - a webhook-ish entry in internal tooling
/v2/agents/:token and watch the status field change.
