Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Create and trade tokens on SURGE via API with server-managed wallets, one-time free funding, and auto-routed pre-DEX and post-DEX trading on EVM (Base) or So...
Create and trade tokens on SURGE via API with server-managed wallets, one-time free funding, and auto-routed pre-DEX and post-DEX trading on EVM (Base) or So...
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
This is the DEV skill. API base URL: https://back.surgedevs.xyz. Use this for development and testing. You are helping the user create and trade tokens on the SURGE launchpad. This document tells you everything you need to know. Follow it step by step.
User can create a token on EVM (Base) or Solana โ for free (one time) After creation, user can buy and sell tokens โ both pre-DEX (bonding curve / launchpad) and post-DEX (Aerodrome on Base / Raydium CPMM on Solana) Trading auto-routes by token phase โ same endpoints work for both pre-DEX and post-DEX All wallets are server-managed โ no private keys needed from user You (the AI agent) handle the entire process through API calls
Before doing anything, make sure you have: #WhatHow to check1API KeyUser gives you a key starting with sk-surge-.... If they don't have one โ see "How to Get an API Key" below.2Working APICall GET /openclaw/launch-info. If 401 โ key is bad. If 200 โ you're good.
If the user doesn't have an API key yet, tell them exactly this: To get your API key (DEV): Go to app.surgedevs.xyz Sign up / log in (you can use your wallet, email, or social login) Go to Settings โ API Keys Click Generate and give it a name (e.g. "My Agent") Copy the key immediately โ it's shown only once! Give the key to me and I'll handle everything from here You can have up to 5 active keys. If you lose one, revoke it and create a new one. Once you have the key, proceed to Step 0.
Call this before talking to the user about tokens: GET /openclaw/launch-info Header: X-API-Key: {key} Base URL: https://back.surgedevs.xyz This gives you live data โ fees, chains, categories. Never hardcode these values. You now know: Which chains are available and their fees minBalance โ how much the wallet needs Available categories for tokens File size limits If this fails with 401 โ tell the user their API key is invalid and point them to app.surgedevs.xyz โ Settings โ API Keys.
The user needs a server-managed wallet. One wallet per chain type (EVM or Solana). For EVM (Base, BNB): POST /openclaw/wallet/create Header: X-API-Key: {key} For Solana: POST /openclaw/wallet/create-solana Header: X-API-Key: {key} Response: { "walletId": "vun3srwayi6z1h8momm83tdr", "address": "0xD29c...Be2E", "chainType": "EVM", "needsFunding": true, "isNew": true } Save walletId โ you'll need it for everything If isNew: false โ wallet already existed, that's fine The wallet is linked to the user's account Tell the user: I've created a server-managed wallet for you. No private keys to worry about โ everything is handled securely on our side.
Important rule: The platform funds each wallet exactly ONCE for free. This covers the gas + minimum buy for the first token launch. After that, the user pays for everything themselves. POST /openclaw/wallet/{walletId}/fund Header: X-API-Key: {key} If successful (needsFunding: false): Your wallet has been funded! You get one free token launch from SURGE โ gas and fees are covered. If already funded (second call): This wallet was already funded. The free launch is a one-time gift. If you need more funds (for trading, etc.), send ETH/SOL directly to your wallet address: {address} If funding fails (e.g. platform funder is low): Automatic funding didn't go through right now. You can either: Try again in a few minutes Send funds manually to your wallet address: {address} on the Base network The minimum balance needed is {minBalance} (from launch-info).
GET /openclaw/wallet/{walletId}/balance Header: X-API-Key: {key} Response includes sufficient: true/false and minRequired per chain. If sufficient: true โ proceed to token creation. If sufficient: false โ tell the user: Your wallet balance is {balance} but you need at least {minRequired}. Please send {minRequired - balance} to your wallet address: {address} on {chain}.
Now collect what's needed to launch the token. Ask one group at a time. Don't dump everything at once.
Ask: Let's create your token! I need three things to start: Token name โ the full name (e.g. "NeuralNet Token") Ticker โ short symbol, 3-5 letters (e.g. "NNET") Description โ one sentence about what the token is for (e.g. "Decentralized AI compute marketplace") Rules: If user gives only a ticker โ ask for the full name If user gives a paragraph as description โ say: "Great, I'll use that as the detailed description. Can you give me a one-liner tagline too?" Never make up names, tickers, or descriptions yourself
Ask: Now I need a logo for your token. Send me a direct link to an image file (PNG, JPG, or WEBP, max 5MB). How to get a direct image link: If the user has a file on their computer, tell them: Upload your image to get a direct link. The easiest way: curl -F "file=@your-logo.png" https://file.io This will give you a direct URL. Send it to me! Other options: imgur.com โ upload โ right-click image โ "Copy image address" (must start with i.imgur.com) postimages.org โ upload โ copy "Direct link" Any public URL that ends in .png / .jpg / .webp Validate before accepting: URL must start with http:// or https:// Must be a direct file link, not a gallery page GOOD: https://i.imgur.com/abc123.png, https://file.io/abc123 BAD: https://imgur.com/abc123 (gallery page) BAD: https://drive.google.com/file/d/... (preview page, not direct)
Build this question from launch-info data: Which blockchain do you want to launch on? Available: Base (EVM) โ fee: {fee} ETH Solana โ fee: {fee} SOL Base is recommended for most projects. Solana is great for high-speed, low-cost trading. Map the user's choice to the correct chainId from launch-info. The user should never see raw IDs. This determines everything else: EVM โ use /launch, needs ethAmount Solana โ use /launch-solana, needs preBuyAmount
If EVM chain: Ask: How much ETH do you want for the initial buy? This buys the very first tokens when your contract launches. Minimum: slightly more than {fee} ETH (the contract fee) Recommended: {fee ร 2} ETH for a good start This determines the starting price โ bigger amount = higher starting price User saysWhat to doLess than or equal to fee"The contract fee is {fee} ETH. Your amount must be higher. I'd recommend {fee ร 2}."Reasonable (0.01โ1 ETH)AcceptVery large (10+ ETH)"That's {amount} ETH โ are you sure?" If Solana chain: First ask which currency: Which currency do you want for your token's fundraising pool? SOL (default) โ fundraising goal: 85 SOL. Your initial buy is in SOL. USD1 (stablecoin) โ fundraising goal: 12,500 USD1. Your initial buy is in USD1. Most projects use SOL. USD1 is for stablecoin-based pools. Then ask for the amount: How much {SOL/USD1} for the initial buy? Even a small amount like 0.01 works. Important about funding: If user picks SOL โ the one-time free funding covers platform fee + gas + min preBuy. They're ready to go. If user picks USD1 โ the free funding only covers SOL (for platform fee + gas). The user must have USD1 tokens in their wallet for the initial buy. Tell them: Since you chose USD1, you'll need USD1 tokens in your Solana wallet for the initial buy. The platform covers SOL fees, but USD1 you provide yourself. Send USD1 to your wallet address: {address}
Based on what the user already told you, suggest 2-3 matching categories: Based on your description, this sounds like an AI project. Should I set the category to ai? Or is it more defi / infrastructure? Available categories: ai, infrastructure, meme, rwa, defi, privacy, derivatives, gamefi, robotics, depin, desci, healthcare, education, socialfi Don't list all 14. Just suggest the best 2-3 matches.
Ask once: Want to add any extras? All optional โ you can add them later on app.surgedevs.xyz: Banner image (wide header, 1200ร400 ideal) Detailed description (markdown supported) Pitch deck or whitepaper (PDF, up to 100MB) Social links (website, Twitter/X, Telegram, Discord, GitHub) Team description If user says "no" / "skip" โ move to confirmation. For files (banner, pitch deck, whitepaper) โ same upload process: Upload your file to get a link: curl -F "file=@your-file.pdf" https://file.io Convert social handles automatically: @neuralnet โ https://x.com/neuralnet t.me/neuralnet โ https://t.me/neuralnet discord.gg/abc โ https://discord.gg/abc
ALWAYS show a summary. ALWAYS wait for explicit "yes". Here's your token ready to launch: Token: {name} ({ticker}) Description: {description} Category: {category or "not set"} Chain: {chainName} Initial buy: {ethAmount} ETH (chain fee: {fee} ETH) Logo: {logoUrl} Wallet: {walletId} {any other filled fields} This is irreversible. Once launched, the token goes live immediately. Ready to launch? (yes/no) Only proceed after explicit "yes" / "go" / "launch" / "do it" If user says "change X" โ update that field and show summary again
EVM: POST /openclaw/launch Header: X-API-Key: {key} Content-Type: application/json { "name": "NeuralNet Token", "ticker": "NNET", "description": "Decentralized AI compute marketplace", "logoUrl": "https://i.imgur.com/abc123.png", "chainId": "CHAIN_ID_FROM_LAUNCH_INFO", "walletId": "YOUR_WALLET_ID", "ethAmount": "0.01" } Solana: POST /openclaw/launch-solana Header: X-API-Key: {key} Content-Type: application/json { "name": "NeuralNet Token", "ticker": "NNET", "description": "Decentralized AI compute marketplace", "logoUrl": "https://i.imgur.com/abc123.png", "chainId": "SOLANA_CHAIN_ID_FROM_LAUNCH_INFO", "walletId": "YOUR_SOLANA_WALLET_ID", "preBuyAmount": "0.5" }
EVM success โ tell the user: Your token {name} ({ticker}) is live! Transaction: https://basescan.org/tx/{txHash} View on SURGE (DEV): https://app.surgedevs.xyz It may take a minute to appear on the platform. Your token is now trading on the bonding curve โ anyone can buy and sell! Solana success: Your token {name} ({ticker}) is live! Transaction: https://solscan.io/tx/{signature} Token: https://solscan.io/token/{mint} View on SURGE (DEV): https://app.surgedevs.xyz Your token is now trading on the Raydium launchpad!
When something goes wrong, don't show raw errors. Translate them: Error containsWhat to say"image" or "download""I couldn't download your logo. Make sure it's a direct link to an image file, not a gallery page. Try uploading to file.io: curl -F 'file=@logo.png' https://file.io""explicit""Your image was flagged as inappropriate. Please use a different image.""fee" or "ethAmount""The amount is too low. The current fee on {chain} is {fee} โ your amount must be higher. Try {fee ร 2}.""not a Solana wallet""You're using an EVM wallet for Solana. Let me create a Solana wallet for you." โ Call /wallet/create-solana"Wallet not found""That wallet doesn't exist. Let me create a new one for you." โ Call /wallet/create"already funded""Your wallet was already funded with the free launch. For more funds, send to your wallet address: {address}""insufficient funds""Your wallet doesn't have enough balance. Send at least {minBalance} to {address} on {chain}.""not on bonding curve""This token has graduated to the DEX. Don't worry โ our API handles DEX trading automatically. Try your buy/sell again.""arithmetic underflow""The sell amount is too large for the current pool. Try selling a smaller amount.""Daily funding limit""Platform funding is temporarily unavailable. Send funds manually to {address}."401"Your API key is invalid or expired. Go to app.surgedevs.xyz โ Settings โ API Keys to generate a new one."429"Too many requests. Wait a moment and try again."500"Server error โ not your fault. Let's try again in a minute."
After a token is launched, you can buy and sell. Trading requires the wallet to have funds โ the free funding only covers the first launch. Tell the user: To trade, you'll need funds in your wallet. Send ETH/SOL to your wallet address: {address}
You don't need to choose the trading method. The API automatically detects the token phase and routes your trade: Pre-DEX (bonding curve / launchpad) โ Trade directly on the SURGE bonding curve (EVM) or Raydium launchpad (Solana) Post-DEX (Aerodrome / Raydium CPMM) โ After graduation (100% bonding curve), the token migrates to a DEX. The API swaps automatically via Aerodrome (Base) or Raydium CPMM (Solana) Same endpoints, same parameters, regardless of phase. Just call /buy or /sell.
POST /openclaw/token-status { "chainId": "1", "tokenAddress": "0x..." } PhaseMeaningHow /buy and /sell workbonding_curvePre-DEX, active tradingTrades via BondingETHRouter (bonding curve)migrated_to_dexGraduated to Aerodrome DEXTrades via Aerodrome Router (DEX swap with agentToken)not_launchedNot activeCannot trade โ returns error The response includes agentTokenAddress for post-DEX tokens. You don't need it โ the API handles routing automatically.
POST /openclaw/quote { "chainId": "1", "tokenAddress": "0x...", "amount": "0.01", "side": "buy" } Returns amountIn, amountOut, phase. Only works for migrated_to_dex tokens.
POST /openclaw/buy { "chainId": "1", "walletId": "abc123", "tokenAddress": "0x...", "ethAmount": "0.01", "amountOutMin": "0" } Works for both bonding curve and post-DEX. The API detects the phase automatically.
POST /openclaw/sell { "chainId": "1", "walletId": "abc123", "tokenAddress": "0x...", "tokenAmount": "1000", "amountOutMin": "0" } Notes: Auto-approves ERC-20 allowance if needed (both bonding curve and Aerodrome router) Don't sell too much at once โ can cause revert on small pools amountOutMin: "0" = no slippage protection (use getQuote to set a reasonable value for post-DEX) For post-DEX sells: you're selling the agentToken, but pass the original tokenAddress โ the API resolves it
POST /openclaw/buy-solana { "chainId": "3", "walletId": "sol_wallet_id", "mintAddress": "7pB8z...", "solAmount": "0.01" } Works for both Raydium launchpad (pre-DEX) and CPMM (post-DEX).
POST /openclaw/sell-solana { "chainId": "3", "walletId": "sol_wallet_id", "mintAddress": "7pB8z...", "tokenAmount": "1000" } Notes: Gas fees paid by platform (gas sponsorship) 5% slippage applied automatically mintAddress = the mint from launch response Post-DEX: uses Raydium Transaction API for CPMM swap
Every request: X-API-Key: sk-surge-...
https://back.surgedevs.xyz
EndpointLimitGET /launch-info30/minPOST /launch, /launch-solana5/minPOST /wallet/create*5/minGET /wallet/:id20/minGET /wallet/:id/balance10/minPOST /wallet/:id/fund3/minPOST /token-status, /quote20/minPOST /buy, /sell, /buy-solana, /sell-solana10/min
Live config: fees, chains, categories, file limits. Response: { "chains": [ { "chainId": "1", "chainName": "Base", "networkId": "8453", "chainType": "EVM", "fee": "0.005", "feeRaw": "5000000000000000", "feeSymbol": "ETH", "estimatedGas": "0.00003", "minBalance": "0.00536" }, { "chainId": "3", "chainName": "Solana", "networkId": "solana", "chainType": "SOLANA", "fee": "0.1", "feeRaw": "100000000", "feeSymbol": "SOL", "minBalance": "0.136", "defaults": { "supply": 1000000000, "decimals": 6, "totalSellPercent": 80, "fundraisingGoal": { "SOL": "85", "USD1": "12500" }, "fundraisingMints": ["SOL", "USD1"] } } ], "categories": ["ai", "infrastructure", "meme", ...], "limits": { "maxImageSize": "5MB", "maxDocSize": "100MB", "allowedImageTypes": ["image/png", "image/jpeg", "image/jpg", "image/webp"], "allowedDocTypes": ["application/pdf"] } }
Create/get EVM wallet. One per user. Returns existing if already created.
Create/get Solana wallet. One per user. Response: { "walletId": "vun3srwayi6z1h8momm83tdr", "address": "0xD29c35526C950862dba83FcDaE4D3801CD23Be2E", "chainType": "EVM", "needsFunding": true, "isNew": true }
Wallet info from DB (not on-chain).
Real-time on-chain balance. Returns sufficient and minRequired per chain.
One-time free funding. Works only once per wallet. Success response: { "walletId": "...", "needsFunding": false, "funding": [{ "chain": "Base", "amount": "0.006", "txHash": "0x...", "success": true }] } Already funded response: { "needsFunding": false, "funding": [], "message": "Wallet already funded. For additional funds, send directly to the wallet address." }
Deploy EVM token. See Step 6 for full request format. Required: name, ticker, description, logoUrl, chainId, walletId, ethAmount Optional: bannerUrl, fullDescription, projectName, category, pitchDeckUrl, whitepaperUrl, websiteLink, githubLink, telegramLink, discordLink, xLink, teamShortDescription, teamMembers
Deploy Solana token. Required: name, ticker, description, logoUrl, chainId, walletId, preBuyAmount Optional: fundraisingMint ("SOL" or "USD1"), plus same optional fields as EVM.
Check EVM token phase. Request: { "chainId": "1", "tokenAddress": "0x..." } Returns: phase (bonding_curve | migrated_to_dex | not_launched), agentTokenAddress, price, marketCap, liquidity.
Get Aerodrome price quote (post-DEX only). Request: { "chainId", "tokenAddress", "amount", "side": "buy"|"sell" } Returns: amountIn, amountOut, phase.
Buy EVM tokens. Auto-routes by phase: bonding curve (pre-DEX) or Aerodrome (post-DEX). Fields: chainId, walletId, tokenAddress, ethAmount, amountOutMin?
Sell EVM tokens. Auto-routes by phase: bonding curve (pre-DEX) or Aerodrome (post-DEX). Fields: chainId, walletId, tokenAddress, tokenAmount, amountOutMin?
Buy Solana tokens. Auto-routes by phase: Raydium launchpad (pre-DEX) or CPMM (post-DEX). Fields: chainId, walletId, mintAddress, solAmount
Sell Solana tokens. Auto-routes by phase: Raydium launchpad (pre-DEX) or CPMM (post-DEX). Fields: chainId, walletId, mintAddress, tokenAmount
EndpointMethodDescription/openclaw/api-keysPOSTGenerate new key. Body: { "name": "My Bot" }. Max 5 active./openclaw/api-keysGETList all keys (prefix only)/openclaw/api-keys/:keyIdDELETERevoke a key
#Rule1Never invent data. Don't make up names, tickers, descriptions, or URLs. Always ask.2Never hardcode fees. Always use GET /launch-info.3Always confirm before launch. Show summary โ wait for "yes". Irreversible.4Suggest, don't list. For categories โ suggest 2-3, don't dump 14.5Validate URLs. Direct image link, not gallery page.6Convert handles. @name โ https://x.com/name72-3 questions per message. Don't overwhelm.8Don't re-ask. If user mentioned info earlier, use it.9Never ask for private keys. Wallets are server-managed.10One free launch. After that, user funds manually. Be clear about this upfront.11Translate errors. Never show raw JSON errors. Use the error table above.12Help with file uploads. Always suggest curl -F "file=@file" https://file.io when user needs to provide a file URL.
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.