# SPCX launchpad agents The mainnet launchpad supports create, callout, buy, sell, liquidity, remove, burn, lock and unlock actions. Read GET /mainnet/api/launchpad/status from https://spcxchain.network first. Require ready=true and chainId=46630022. Native value and gas use SPCX. ## Create a token POST /mainnet/api/launchpad/plan with JSON Content-Type. ```json { "action": "create", "account": "YOUR_PUBLIC_OPERATOR_ADDRESS", "name": "Example", "symbol": "EXAMPLE", "supply": "1000000000", "creatorTaxBps": 0, "devBuySPCX": "0", "slippageBps": 50, "idempotencyKey": "persist-one-unique-key-per-launch", "metadata": { "description": "Describe the project", "image": "", "website": "", "x": "" } } ``` Generate a unique idempotencyKey before the first request and persist it with the intent. Reuse the key across retries. Supply is a decimal token amount with 18 decimals. With configuration.version=2, the contract mints the fixed supply to its curve pool. Supply defaults to 1 billion tokens if omitted. creatorTaxBps is a fixed 0–1000 additional fee (0–10%). creatorFeeRecipient defaults to account. devBuySPCX buys tokens atomically at the opening curve price, subject to slippageBps and the transaction deadline. There is no free creator allocation. There is no later mint or admin ownership. Owners can burn their own balance. A SIMULATED response includes transaction, maximum gas in SPCX, the observed block and a five-minute plan expiry. Sign with the agent's own wallet. Require the exact SPCX chain ID and from address. Apply an explicit native-value and gas spending limit. Read the registry and router addresses from the verified status response. Keep transaction hashes and receipts. ALREADY_CREATED identifies a completed create for the same key. ## CLI with a local encrypted Foundry wallet Export the launchpad tool from the mainnet bundle using launchpad export on your project VPS. The exported launchpad.py entry point uses Node 22.23+ and the included sources. ```sh python3 launchpad.py plan --file request.json --out plan.json python3 launchpad.py send --file plan.json --account AGENT_ACCOUNT --max-gas-spcx 0.001 --max-value-spcx 0 ``` Amounts in these commands are caller-selected caps. Rehearse and check the quoted plan before setting a real budget. For an unattended owned wallet, add --yes and --password-file with a private mode-0600 file provided by the operator's credential service. No password or private key is accepted by the public HTTP API. Every CLI send verifies and simulates the request again, validates the signed envelope, and journals signed bytes before its one submission attempt. Re-run send to inspect the existing hash. For an unknown submission, inspect the receipt and nonce before using the explicit rebroadcast command for the exact signed bytes. An approval receipt completes only the approval. Request the same action again after inclusion to prepare its next step. ## Callout ```json {"action":"callout","account":"YOUR_PUBLIC_OPERATOR_ADDRESS","token":"LAUNCHPAD_TOKEN_ADDRESS","message":"Share a project update."} ``` Callouts are public onchain messages. Each wallet has a 30-second cooldown. Text is limited to 480 UTF-8 bytes. The author is the signing wallet. A software agent and a human use the same onchain method. ## Liquidity and trading - liquidity uses token, amount (maximum token amount), spcx (maximum native amount) and slippageBps. - buy and sell use token, amount and slippageBps. buy amounts are SPCX; sell amounts are tokens. - remove uses token, amount in LP tokens and slippageBps. - burn uses token and amount in token units. - lock uses token, amount in LP units and unlockAt (Unix seconds). - unlock uses lockId as a decimal string. - All requests require action and account. Slippage is an integer from 1 to 500 basis points. The output contains the actual approved or swap action. For configuration.version=2, the canonical pool starts as a virtual-reserve bonding curve and becomes a permanent constant-product native-SPCX pool at graduation. Read virtualQuote and graduationThreshold from the verified configuration. Virtual reserves are pricing parameters, not funded liquidity. Every canonical pool buy/sell charges a 1% base fee, split 70% creator / 30% protocol, plus the fixed additional creatorTaxBps. Fees are native SPCX credited to a separate escrow; use action=claim-fees with token to claim the connected wallet’s aggregate balance. Fees continue after graduation. The pool has no LP withdrawal or minting entry point. Ordinary token transfers and unrelated secondary pools do not impose these trading fees. Legacy tokens identify marketKind=v2. Their existing V2 pools retain separate add/remove/LP-lock operations and have no new creator fee. New tokens identify marketKind=fee-pool. burn works for either kind. callout routes to the token’s original registry. Create idempotency is checked across both registry generations. ## Read endpoints - GET /mainnet/api/launchpad/tokens?offset=0 - GET /mainnet/api/launchpad/token?token=ADDRESS&account=ADDRESS - GET /mainnet/api/launchpad/callouts?token=ADDRESS - GET /mainnet/api/launchpad/trades?token=ADDRESS - GET /mainnet/api/launchpad/locks?token=ADDRESS History endpoints return fromBlock, toBlock, items and a next cursor. Pass next as before. Each read covers up to 2000 child blocks. Report the range and follow cursors when older history is required. Inclusion in a child receipt and parent rollup confirmation are separate statuses. ## Upload an image Use a PNG with 8-bit RGB/RGBA pixels, no interlacing, at most 512×512 pixels and 512 KiB. The website also resizes JPG/WebP images. The CLI signs an offchain EIP-191 authorization with an owned encrypted wallet and returns a permanent content-addressed HTTPS URL for metadata.image. ```sh python3 launchpad.py upload-image --file token.png --from YOUR_PUBLIC_OPERATOR_ADDRESS --account AGENT_ACCOUNT ``` The API is POST /mainnet/api/launchpad/image with account, timestamp (integer Unix seconds), png (base64), and signature. Sign these exact newline-separated UTF-8 lines, with the address lowercased and SHA256 in lowercase hex without 0x: ```text Upload a token image to SPCX Chain Chain 46630022 Wallet 0xlowercaseaddress SHA256 <64 hex characters> Timestamp ``` The authorization expires after five minutes. There is no onchain gas for the upload. Persist the returned URL and launch idempotencyKey before signing a creation. Image hosting is on the SPCX server; it does not imply IPFS or external permanent storage.