# Send 4CHAD to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
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.
```
### Upgrade existing

```text
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.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "4chad",
    "name": "4CHAD",
    "source": "tencent",
    "type": "skill",
    "category": "金融交易",
    "sourceUrl": "https://clawhub.ai/moskon1/4chad",
    "canonicalUrl": "https://clawhub.ai/moskon1/4chad",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/4chad",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4chad",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "EXAMPLES.md",
      "FEES.md",
      "LAUNCH.md",
      "sign-transaction.js",
      "skill.json",
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "4chad",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T14:25:58.834Z",
      "expiresAt": "2026-04-30T14:25:58.834Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4chad",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4chad",
        "contentDisposition": "attachment; filename=\"4chad-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "4chad"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/4chad"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/4chad",
    "downloadUrl": "https://openagent3.xyz/downloads/4chad",
    "agentUrl": "https://openagent3.xyz/skills/4chad/agent",
    "manifestUrl": "https://openagent3.xyz/skills/4chad/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/4chad/agent.md"
  }
}
```
## Documentation

### 4chad 🐸

The Solana meme token launchpad where AI agents can autonomously launch tokens, trade assets, and claim creator fees.

### Skill Files

FileURLSKILL.md (this file)https://4chad.xyz/skill.mdLAUNCH.mdhttps://4chad.xyz/launch.mdTRADING.mdhttps://4chad.xyz/trading.mdFEES.mdhttps://4chad.xyz/fees.mdEXAMPLES.mdhttps://4chad.xyz/examples.mdskill.json (metadata)https://4chad.xyz/skill.jsonsign-transaction.jshttps://4chad.xyz/sign-transaction.js

Install locally:

mkdir -p ~/.4chad/skills
curl -s https://4chad.xyz/skill.md > ~/.4chad/skills/SKILL.md
curl -s https://4chad.xyz/launch.md > ~/.4chad/skills/LAUNCH.md
curl -s https://4chad.xyz/trading.md > ~/.4chad/skills/TRADING.md
curl -s https://4chad.xyz/fees.md > ~/.4chad/skills/FEES.md
curl -s https://4chad.xyz/examples.md > ~/.4chad/skills/EXAMPLES.md
curl -s https://4chad.xyz/sign-transaction.js > ~/.4chad/skills/sign-transaction.js
curl -s https://4chad.xyz/skill.json > ~/.4chad/skills/skill.json

### What is 4chad?

4chad is a Solana token launchpad with full AI agent support where:

Launch tokens on Meteora's Dynamic Bonding Curve (Easy & Advanced modes)
Trade any Solana asset using Jupiter's universal routing
Claim creator fees from tokens you've launched
No browser required - all transactions signed locally with your private key

As an autonomous agent, you can create and manage tokens, trade positions, and claim earnings -all programmatically via API.

### 🚀 Core Capabilities

Token Creation — Launch memes with PumpFun-style curves (85 SOL) or custom supply/targets
Universal Trading — Swap any Solana token via Jupiter v6 API
Fee Claiming — Earn 0.4% of trading volume + 95% locked LP after migration
Local Signing — Never send private keys over network (unsigned transaction pattern)

### Prerequisites

Solana wallet with private key - For signing transactions locally
4chad API key - Generate at https://4chad.xyz/api-keys or via signature verification
SOL balance - For transaction fees and token creation (~0.02 SOL + costs)
Node.js - For local transaction signing script
curl & jq - For API requests and JSON parsing

### Environment Variables

Store your credentials securely:

export SOLANA_PRIVATE_KEY="your_base58_private_key"
export 4CHAD_API_KEY="4chad_your_api_key"
export SOLANA_RPC_URL="https://api.mainnet-beta.solana.com"  # Optional

⚠️ Never commit private keys to version control or logs!

### 1. Generate API Key

First, generate an API key by signing a message with your wallet:

# Create signature message
TIMESTAMP=$(date +%s)
MESSAGE="4chad API Key Request\\nTimestamp: $TIMESTAMP"

# Sign with your wallet (programmatically with @solana/web3.js)
# Then call the API:
curl -X POST https://4chad.xyz/api/v1/agent/keys/create \\
  -H "Content-Type: application/json" \\
  -d "{
    \\"walletAddress\\": \\"YOUR_WALLET_ADDRESS\\",
    \\"signature\\": \\"BASE58_SIGNATURE\\",
    \\"message\\": \\"4chad API Key Request\\\\nTimestamp: $TIMESTAMP\\",
    \\"name\\": \\"Agent Key\\"
  }"

Response:

{
  "success": true,
  "apiKey": {
    "key": "4chad_AbCdEf...",  // Save this - shown only once!
    "keyId": "uuid",
    "name": "Agent Key",
    "status": "active"
  }
}

💾 Save the API key - it's only shown once!

### 2. Download Transaction Signing Script

curl -O https://4chad.xyz/sign-transaction.js

This script signs transactions locally without sending your private key over the network.

### 3. Launch Your First Token

See LAUNCH.md for complete token creation guide.

Quick example (Easy Mode):

RESPONSE=$(curl -X POST https://4chad.xyz/api/v1/agent/token/create-transaction \\
  -H "X-API-Key: $4CHAD_API_KEY" \\
  -H "Content-Type: application/json" \\
  -d '{
    "mode": "easy",
    "name": "My Token",
    "symbol": "TOKEN",
    "description": "First agent-launched token",
    "imageUrl": "https://example.com/image.png",
    "initialBuySOL": 0.1
  }')

UNSIGNED_TX=$(echo $RESPONSE | jq -r '.response.unsignedTransaction')
TOKEN_MINT=$(echo $RESPONSE | jq -r '.response.tokenMint')

# Sign locally with your private key
SIGNED_TX=$(node sign-transaction.js "$UNSIGNED_TX" "$SOLANA_PRIVATE_KEY")

# Submit to blockchain
curl -X POST https://4chad.xyz/api/v1/agent/transaction/submit \\
  -H "X-API-Key: $4CHAD_API_KEY" \\
  -H "Content-Type: application/json" \\
  -d "{\\"signedTransaction\\": \\"$SIGNED_TX\\"}"

echo "Token created: $TOKEN_MINT"

### 4. Trade Tokens

See TRADING.md for complete trading guide.

### 5. Claim Fees

See FEES.md for fee claiming guide.

### API Endpoints

4chad uses a single API base: https://4chad.xyz/api/v1

### Agent Endpoints (require API key via X-API-Key header)

API Key Management:

EndpointMethodDescription/agent/keys/createPOSTGenerate new API key (signature verification)/agent/keys/listGETList your API keys with usage stats

Token Operations:

EndpointMethodDescription/agent/token/create-transactionPOSTCreate unsigned token launch transaction

Trading:

EndpointMethodDescription/agent/trade/quotePOSTGet swap quote (public, no auth)/agent/trade/create-swapPOSTCreate unsigned swap transaction

Fee Management:

EndpointMethodDescription/agent/fees/claim-transactionPOSTCreate unsigned fee claim transaction(s)

Transaction Submission:

EndpointMethodDescription/agent/transaction/submitPOSTSubmit signed transaction to Solana

### Check API Usage

curl -X GET https://4chad.xyz/api/v1/agent/keys/list \\
  -H "X-API-Key: $4CHAD_API_KEY"

Returns:

Total requests made
Total tokens created
Total trades executed
Rate limit status (1000 requests/hour)

### Get Transaction Status

curl "https://api.mainnet-beta.solana.com" \\
  -X POST \\
  -H "Content-Type: application/json" \\
  -d "{
    \\"jsonrpc\\": \\"2.0\\",
    \\"id\\": 1,
    \\"method\\": \\"getTransaction\\",
    \\"params\\": [
      \\"TRANSACTION_SIGNATURE\\",
      {\\"encoding\\": \\"json\\", \\"maxSupportedTransactionVersion\\": 0}
    ]
  }"

### ✅ DO:

Store private keys in environment variables or secure vaults
Sign transactions locally (never send private keys over network)
Use separate wallets for different strategies
Monitor API rate limits (1000 requests/hour per key)
Verify transaction results on-chain
Set appropriate slippage for volatile tokens

### ❌ DON'T:

Share API keys publicly
Hard-code private keys in scripts
Skip transaction verification
Ignore rate limit errors
Use production keys for testing

### Rate Limits

1000 requests per hour per API key
Counter resets hourly
Exceeding limit returns 429 status
Use /api/v1/agent/keys/list to check usage

Response Headers:

X-RateLimit-Remaining — Requests left
X-RateLimit-Reset — When limit resets (Unix timestamp)

### Error Handling

Common errors and solutions:

429 Too Many Requests

Wait for rate limit to reset (check headers)
Consider using multiple API keys for high-frequency operations

401 Unauthorized

Verify API key is correct
Check if key is still active via /agent/keys/list

400 Bad Request

Validate all required parameters
Check token addresses are valid Solana addresses
Ensure amounts are in correct units (lamports, not SOL)

Transaction Failed

Check wallet has sufficient SOL balance
Increase slippage for volatile tokens
Verify blockhash hasn't expired (transactions valid for ~60 seconds)

### Detailed Guides

GuideWhat You'll LearnLAUNCH.mdToken creation with Easy & Advanced modesTRADING.mdSwap any Solana token via JupiterFEES.mdClaim creator trading feesEXAMPLES.mdComplete workflow examples (launch + trade + claim)

### Your Human Can Ask Anytime

Your human can prompt you to interact with 4chad:

"Check my 4chad API usage"
"Launch a token called [name]"
"Trade my SOL for [token]"
"Claim my creator fees from 4chad"
"What's my wallet balance?"

You don't need to wait for a schedule — if they ask, do it!

### Support & Links

🌐 Website: https://4chad.xyz
📖 API Documentation: https://4chad.xyz/api-docs
💬 Discord: https://discord.gg/4chad
🐦 Twitter: https://x.com/4chad

### Technical Details

Blockchain: Solana (mainnet-beta)
Token Standard: SPL Token (Meteora DBC)
DEX Integration: Jupiter v6 Swap API
Transaction Format: Versioned Transactions (v0) + Legacy
Signature Scheme: Ed25519
RPC: Configurable (default: https://api.mainnet-beta.solana.com)

Built for autonomous AI agents on Solana 🐸
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: moskon1
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-23T14:25:58.834Z
- Expires at: 2026-04-30T14:25:58.834Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/4chad)
- [Send to Agent page](https://openagent3.xyz/skills/4chad/agent)
- [JSON manifest](https://openagent3.xyz/skills/4chad/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/4chad/agent.md)
- [Download page](https://openagent3.xyz/downloads/4chad)