Xpersona
F

FourMeme

CLAWHUB · Unverified

CLI tool for creating and trading meme tokens on Four.Meme (BSC), with structured JSON outputs for config, token details, pricing quotes, on-chain events, an...

62
Rank
84
Safety
1.6k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.6K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s1704afwwhgcg7e5btxdcsx7cd83w67r:four-meme-ai
  1. Install using `clawhub skill install s1704afwwhgcg7e5btxdcsx7cd83w67r:four-meme-ai` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/four-meme-community/four-meme-ai before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-four-meme-community-four-meme-ai/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

155,607 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: four-meme-ai
description: |
  CLI tool for creating and trading meme tokens on Four.Meme (BSC), with structured JSON outputs for config, token details, pricing quotes, on-chain events, and TaxToken fee configuration.

  

allowed-tools:
  - Bash(fourmeme *)
  - Bash(npx fourmeme *)
license: MIT
metadata:
  {"author":"Four.meme AI Skill","version":"1.0.6","openclaw":{"requires":{"env":["PRIVATE_KEY"]},"primaryEnv":"PRIVATE_KEY","optionalEnv":["BSC_RPC_URL"]}}
---

## [Agent must follow] User agreement and security notice on first use

When responding to any user request about fourmeme or this skill, **you must first** present the content below in this order: **User Agreement, then Security Notice**, and state clearly that by choosing to continue, the user agrees to the User Agreement.  
Until the user has explicitly agreed or confirmed to continue, **do not** run `create-api`, `create-chain`, `buy`, `sell`, `send`, or `8004-register` (any operation that uses the private key or writes to the chain). Read-only commands (e.g. `config`, `token-info`, `quote-buy`, `8004-balance`) may be run while or after presenting the notice.

**Language selection**: Present the User Agreement and Security Notice **in the user’s language**. If the user is writing in **Traditional Chinese (繁體中文)**, use the **繁體中文** block below; otherwise use the **English** block.

---

### User Agreement & Security Notice (繁體中文)

**用戶協議**

**前情提示**:使用本插件及本 skill 所涉功能(包括但不限於代幣創建、買賣、轉帳、8004 註冊等)前,請您閱讀以下協議。**若您選擇繼續使用本插件及本 skill 功能,即表示您已閱讀、理解並同意本協議。**

**本插件性質與責任限制**:本插件僅提供純本地的命令列互動能力(私鑰透過環境變數或本地設定使用),**不會收集、上傳或儲存您的私鑰**。因任何原因(包括但不限於插件被竄改、環境遭入侵、誤操作、第三方插件等)導致的私鑰洩露或資產損失,**本插件及提供方不承擔責任**。

**安全警示**

使用本插件進行代幣創建、買賣、轉帳等操作時,請務必注意:

- **保護私鑰**:切勿在聊天對話中輸入、貼上或洩露私鑰;不要將私鑰分享給任何人或任何第三方。
- **交易錢包僅存小額資金**:用於執行操作的錢包(即提供 PRIVATE_KEY 的錢包)建議只存放少量資金,以降低因洩露或誤操作導致的損失。
- **及時轉出資金**:完成交易後,請及時將交易錢包中的資產轉移到您自己控制的、更安全的錢包或冷錢包中。
- **謹慎安裝 Agent/插件**:下載或安裝任何 Agent、瀏覽器插件或第三方工具時,請確認來源可信,避免惡意插件竊取私鑰或助記詞。

---

### User Agreement & Security Notice (English)

**User Agreement**

**Notice**: Before using this plugin and this skill (including but not limited to token creation, buy/sell, transfers, 8004 registration), please read the following. **By choosing to continue using this plugin and this skill, you have read, understood, and agreed to this agreement.**

**Plugin nature and limitation of liability**: This plugin provides local-only CLI interaction (private key is used via environment or local config). It **does not collect, upload, or store your private key**. The plugin and its providers **are not liable** for private key disclosure or asset loss due to any cause (including but not limited to tampered plugin, compromised environment, user error, or third-party plugins).

**Security Notice**

When using this plugin for token creation, trading, or transfers, please:

- **Protect your private key**: Do not type, paste, or expose your private key in chat; do not share it with anyone or any third party.
- **Keep on

_meta.json

{
  "ownerId": "kn72dvf8zjvzn3s7rcxej9j8xx827zyg",
  "slug": "four-meme-ai",
  "version": "1.0.10",
  "publishedAt": 1774867262228
}

references/agent-creator-and-wallets.md

# Agent Creator & Agent Wallets

This document covers how to identify tokens created by an AI agent (Agent Creator) and how to identify agent wallets on-chain.

---

## How to Identify Token Created By Agent Creator

Tokens created by AI agents can be identified via both on-chain template bits and off-chain API fields. This flag only marks that the token creator is an **Agent wallet** and **does not imply any new special trading mode or behavior** of the token itself.

### On-chain method

Read the token's `template` from TokenManager2:

```solidity
template = TokenManager2._tokenInfos[tokenAddress].template;
bool isCreatedByAgent = (template & (1 << 85)) != 0;
```

- If `isCreatedByAgent` is `true`, the token was **created by an AI agent**.
- If `isCreatedByAgent` is `false`, the token was **not** created by an AI agent.

### Off-chain method

Query token info via:

- `GET https://four.meme/meme-api/v1/private/token/get?address=<token address>`
- `GET https://four.meme/meme-api/v1/private/token/getById?id=<requestId>` (requestId from TokenCreate event)

Check the `aiCreator` field in the response `data`:

- If `aiCreator === true`, the token was **created by an AI agent**.
- If `aiCreator === false`, the token was **not** created by an AI agent.

**Example response:**

```json
{
  "code": "0",
  "data": {
    "aiCreator": true,
    ...
  }
}
```

---

## How to Identify Agent Wallets

You can determine whether a wallet address is an **Agent wallet** by calling the **AgentIdentifier** contract.

### On-chain method

**Contract (BSC)**

- **Address**: `0x09B44A633de9F9EBF6FB9Bdd5b5629d3DD2cef13`
- **ABI**: See official Four.meme API / Protocol Integration docs (`AgentIdentifier.abi`).

**Interface**

```solidity
interface IAgentIdentifier {
    function isAgent(address wallet) external view returns (bool);
    function nftCount() external view returns (uint256);
    function nftAt(uint256 index) external view returns (address);
}
```

**Usage**

Call `isAgent(wallet)` on the AgentIdentifier contract:

```solidity
IAgentIdentifier ai = IAgentIdentifier(0x09B44A633de9F9EBF6FB9Bdd5b5629d3DD2cef13);
bool isAgent = ai.isAgent(wallet);
```

- Returns `true` if the wallet is an Agent wallet, otherwise `false`.
- Logic: `isAgent(wallet)` is `true` when the wallet holds any Agent NFT (`balanceOf(wallet) > 0`).

**Querying configured Agent NFTs**

- `nftCount()` — number of Agent NFT contracts registered.
- `nftAt(index)` — Agent NFT contract address at `index`.

Tokens created by wallets with `isAgent == true` are marked as **Agent Creator** and can be identified as **Token Created By Agent Creator** using the methods above.

references/api-create-token.md

# Four.meme API – Create Token

Base URL: `https://four.meme/meme-api/v1`

## Endpoints (in order)

| Step | Method | Path | Description |
|------|--------|------|-------------|
| 1 | POST | `/private/user/nonce/generate` | Get nonce |
| 2 | POST | `/private/user/login/dex` | Login → access_token |
| 3 | POST | `/private/token/upload` | Upload image → imgUrl |
| 4 | POST | `/private/token/create` | Create → createArg, signature |

## 1. Nonce

- **URL**: `https://four.meme/meme-api/v1/private/user/nonce/generate`
- **Body**: `{ "accountAddress": "<wallet>", "verifyType": "LOGIN", "networkCode": "BSC" }`
- **Response**: `{ "code": "0", "data": "<nonce>" }`

## 2. Login

- **URL**: `https://four.meme/meme-api/v1/private/user/login/dex`
- **Body**: Include `verifyInfo.signature` = sign(`You are sign in Meme {nonce}`) with wallet, `verifyInfo.address`, `verifyInfo.networkCode` ("BSC"), `verifyInfo.verifyType` ("LOGIN"), plus region, langType, walletName, etc.
- **Response**: `{ "code": "0", "data": "<access_token>" }`

## 3. Upload image

- **URL**: `https://four.meme/meme-api/v1/private/token/upload`
- **Headers**: `meme-web-access: <access_token>`, `Content-Type: multipart/form-data`
- **Body**: `file` = image (jpeg/png/gif/bmp/webp)
- **Response**: `{ "code": "0", "data": "<imgUrl>" }`

## 4. Create token

- **URL**: `https://four.meme/meme-api/v1/private/token/create`
- **Headers**: `meme-web-access: <access_token>`, `Content-Type: application/json`
- **Body**: **Required**: **raisedAmount** (raise amount; use 24 or raisedToken.totalBAmount from public config), **raisedToken** (from `GET /public/config`; do not modify). Customizable: name, shortName, desc, imgUrl, launchTime, label, lpTradingFee (0.0025), webUrl, twitterUrl, telegramUrl, preSale, onlyMPC, feePlan, tokenTaxInfo (optional).
- **Response**: `{ "code": "0", "data": { "createArg": "...", "signature": "..." } }`

Then call **TokenManager2.createToken(createArg, sign)** on BSC with these values (as bytes).

## Labels

Meme, AI, Defi, Games, Infra, De-Sci, Social, Depin, Charity, Others.

## tokenTaxInfo (optional; Tax-type token)

Omit to create a normal token; include to create a tax-type token.

- **feeRate**: Trading fee; must be **1, 3, 5, or 10** (1%/3%/5%/10%).
- **burnRate**, **divideRate**, **liquidityRate**, **recipientRate**: All percentages; **sum of the four must be 100**.
- **recipientAddress**: Address that receives the recipient share; use `""` when not used, and **recipientRate = 0**.
- **minSharing**: Min balance to participate in dividends (ether units); must satisfy **minSharing = d×10ⁿ**, n≥5, 1≤d≤9, e.g. 100000, 1000000.

Full field description and examples: [token-tax-info.md](token-tax-info.md).

references/contract-addresses.md

# Four.meme Contract Addresses (BSC only)

This skill supports **BSC only** (chainId 56). Arbitrum and Base are not supported.

## TokenManager (V1)

Used for tokens created **before** September 5, 2024. Only trading (no create).

| Chain | Address |
|-------|---------|
| BSC   | `0xEC4549caDcE5DA21Df6E6422d448034B5233bFbC` |

## TokenManager2 (V2)

Used for tokens created **after** September 5, 2024. Create and trade.

| Chain | Address |
|-------|---------|
| BSC   | `0x5c952063c7fc8610FFDB798152D69F0B9550762b` |

## TokenManagerHelper3 (V3)

Use for **getTokenInfo**, **tryBuy**, **trySell**. Supports both V1 and V2 tokens.

| Chain | Address |
|-------|---------|
| BSC   | `0xF251F83e40a78868FcfA3FA4599Dad6494E46034` |

## AgentIdentifier (BSC)

Used to check if a wallet is an **Agent wallet** (holds an Agent NFT). See [agent-creator-and-wallets.md](agent-creator-and-wallets.md).

| Chain | Address |
|-------|---------|
| BSC   | `0x09B44A633de9F9EBF6FB9Bdd5b5629d3DD2cef13` |

- **Interface**: `isAgent(address wallet)`, `nftCount()`, `nftAt(uint256 index)`.

---

## Usage

1. Call **TokenManagerHelper3.getTokenInfo(token)** to get `version` and `tokenManager`.
2. If `version === 1` → use TokenManager V1 for buy/sell.
3. If `version === 2` → use TokenManager2 for buy/sell (and check X Mode / TaxToken / AntiSniperFeeMode if needed).
4. Token creation is only via **TokenManager2** on BSC after obtaining `createArg` and `signature` from the four.meme API.
5. **Agent Creator**: Token created by agent wallet — on-chain `(template & (1 << 85)) != 0`; off-chain API `data.aiCreator === true`. Agent wallets: call **AgentIdentifier.isAgent(wallet)** on BSC.

Sponsored

Ads related to FourMeme and adjacent AI workflows.