Xpersona
L

launch-bnb-token-on-flap

CLAWHUB · Unverified

Launch a token on Flap BNB

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/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 s1733ms9zcyd0962mc5m4wns2983zv66:launch-bnb-token-on-flap
  1. Install using `clawhub skill install s1733ms9zcyd0962mc5m4wns2983zv66:launch-bnb-token-on-flap` 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/flapguy/launch-bnb-token-on-flap before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-flapguy-launch-bnb-token-on-flap/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

104,394 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: launch-bnb-token-on-flap
description: Launch a token on Flap BNB
metadata: {"openclaw": {"always": false, "emoji": "🦋", "homepage": "https://docs.flap.sh", "requires": {"anyBins": ["node", "npx", "npm"]}}}
---

# 🦋 Launch a BNB Token on Flap

Launch a token on [Flap](https://docs.flap.sh) (BNB Chain). Execute each step in order. Read each reference file at the step that requires it — do not pre-load them.

---

## ⚠️ Security Notice

This skill requires sensitive capabilities that must be provided:

- **EVM wallet with signing capability** — hardware wallet, browser wallet, MPC, or other secure signing method for BNB Chain (chain ID 56). The skill mainly focuses on constructing transaction data and then the transaction should be signed by the EVM wallet. Always verify transaction details independently before signing.    
- **BNB mainnet RPC endpoint** — a trusted RPC URL for reading blockchain state and broadcasting transactions. If not presently available, this skill will use the public fallback `https://bsc-dataseed.binance.org/`.  

---

## Directory structure

```
skills/launch-bnb-token-on-flap/
├── SKILL.md                        ← this file
└── references/
    ├── preflight.md                ← Step 0: prerequisites
    ├── quote-tokens.md              ← Step 1: quote token selection
    ├── vault-factory.md            ← Step 2: vault factory setup
    ├── meta-upload.md              ← Steps 3 & 6: metadata upload
    ├── tax-params.md               ← Step 4: tax parameters
    ├── salt-finding.md             ← Step 7: vanity salt mining
    └── construct-tx.md             ← Step 8: transaction construction
```

---

## Step 0 — Preflight check

Before starting, verify that all required reference files are present. If any are missing, you **MUST** obtain them before proceeding: 

**Required files:**

- `references/preflight.md`
- `references/quote-tokens.md`
- `references/vault-factory.md`
- `references/meta-upload.md`
- `references/tax-params.md`
- `references/salt-finding.md`
- `references/construct-tx.md`

Check each file exists, then read `references/preflight.md` and verify every prerequisite is satisfied before continuing.

---

## Step 1 — Choose token type and quote token

Every token launched by this skill is a **Flap Tax Token V3** (`TOKEN_TAXED_V3`). Standard
(non-tax) tokens are out of scope for this skill.

Determine the token configuration:

1. **Use a Vault Factory for revenue management?**
2. **Which quote token to launch against?** Read `references/quote-tokens.md` to fetch the
   current list of supported quote tokens on BNB Chain and resolve the `quoteToken` address and
   `decimals` to use in later steps. Defaults to native BNB if the user has no preference.

Decision map:

| Choice | Contract to call |
|---|---|
| Tax token, no vault | `Portal.newTokenV6` with `tokenVersion = TOKEN_TAXED_V3` |
| Tax token + vault | `VaultPortal.newTokenV6WithVault` with `tokenVersion = TOKEN_TAXED_V3` |

---

## Step 2 — Vau

_meta.json

{
  "ownerId": "kn74f7xg4a0z7vyhjxp9b5619183z6t8",
  "slug": "launch-bnb-token-on-flap",
  "version": "1.3.0",
  "publishedAt": 1787336889334
}

references/construct-tx.md

# Construct the EVM Transaction

Assemble the `to`, `value`, and `data` fields for the token launch transaction. Sending the transaction to the network is handled separately in Step 9.

## Contract addresses (BNB mainnet)

| Contract | Address |
|---|---|
| Portal | `0xe2cE6ab80874Fa9Fa2aAE65D277Dd6B8e65C9De0` |
| VaultPortal | `0x90497450f2a706f1951b5bdda52B4E5d16f34C06` |

All launches from this skill use `tokenVersion = TOKEN_TAXED_V3` (`6`). Standard (non-tax)
tokens are out of scope for this skill.

## Resolving `quoteToken`, `quoteAmt`, and `value`

`quoteToken` and its `decimals` come from `references/quote-tokens.md` (Step 1). Convert the
human-entered launch-buy amount using that token's own `decimals` — do **not** assume 18:

```typescript
import { parseUnits } from "viem";

// quoteToken: resolved address (0x000...000 for native BNB, or an ERC-20 address)
// quoteDecimals: resolved decimals for quoteToken
const quoteAmt = parseUnits(quoteAmtHuman, quoteDecimals);

// msg.value only applies when quoting in native BNB; otherwise it is 0 and the
// ERC-20 quoteToken must already be approved to the target contract (Portal/VaultPortal)
// for at least `quoteAmt`.
const isNativeQuote = quoteToken === "0x0000000000000000000000000000000000000000";
const value = isNativeQuote ? quoteAmt : 0n;
```

## A — Tax token without vault (Portal, TOKEN_TAXED_V3)

Set `migratorType` to `1` (V2_MIGRATOR) and `tokenVersion` to `6` (TOKEN_TAXED_V3). Fill in the tax parameters as determined in Step 4. 

```typescript
import { encodeFunctionData } from "viem";

const to    = "0xe2cE6ab80874Fa9Fa2aAE65D277Dd6B8e65C9De0"; // Portal
const data  = encodeFunctionData({
  abi: PORTAL_ABI,
  functionName: "newTokenV6",
  args: [{
    name, symbol, meta: ipfsCid,
    dexThresh:          1,               // FOUR_FIFTHS (80%)
    salt,
    migratorType:       1,               // must be V2_MIGRATOR for tax tokens
    quoteToken,                          // resolved in Step 1 (see quote-tokens.md)
    quoteAmt,                            // base units, using quoteToken's own decimals
    beneficiary,                         // required for tax token without vault
    permitData:         "0x",
    extensionID:        "0x0000000000000000000000000000000000000000000000000000000000000000",
    extensionData:      "0x",
    dexId:              0,
    lpFeeProfile:       0,
    buyTaxRate,
    sellTaxRate,
    taxDuration,
    antiFarmerDuration,
    mktBps,
    deflationBps,
    dividendBps,
    lpBps,
    minimumShareBalance,
    dividendToken:      "0x0000000000000000000000000000000000000000",
    commissionReceiver: "0x0000000000000000000000000000000000000000",
    tokenVersion:       6,               // TOKEN_TAXED_V3
  }],
});
```

## B — Tax token with vault (VaultPortal, TOKEN_TAXED_V3)

```typescript
const to    = "0x90497450f2a706f1951b5bdda52B4E5d16f34C06"; // VaultPortal
const data  = encodeFunctionData({
  abi: VAULT_PORTAL_ABI,
  functionName: "newTokenV6WithVault

references/meta-upload.md

# Token Metadata — Upload to Flap

Token metadata is stored on IPFS and must be pinned via Flap's upload API. The Flap indexer and partner terminals serve files exclusively through the Flap gateway.

**Upload endpoint:** `https://funcs.flap.sh/api/upload`

## Metadata fields

| Field | Required | Notes |
|---|---|---|
| `name` | yes | Token name |
| `symbol` | yes | Token ticker symbol |
| image file | yes | Any common image format (PNG recommended) |
| `description` | no | Short description |
| `twitter` | no | Twitter/X handle (without `@`) |
| `telegram` | no | Telegram group/channel link or handle |

## Upload (TypeScript with axios)

```typescript
import axios from "axios";
import fs from "fs";

const UPLOAD_API = "https://funcs.flap.sh/api/upload";

const MUTATION_CREATE = `
  mutation Create($file: Upload!, $meta: MetadataInput!) {
    create(file: $file, meta: $meta)
  }
`;

async function uploadTokenMeta(opts: {
  imagePath: string;
  description?: string;
  twitter?: string;
  telegram?: string;
  website?: string;
}): Promise<string> {
  const form = new FormData();

  form.append(
    "operations",
    JSON.stringify({
      query: MUTATION_CREATE,
      variables: {
        file: null,
        meta: {
          description: opts.description ?? "",
          twitter: opts.twitter ?? null,
          telegram: opts.telegram ?? null,
          website: opts.website ?? null,
          creator: "0x0000000000000000000000000000000000000000",
        },
      },
    })
  );

  form.append("map", JSON.stringify({ "0": ["variables.file"] }));

  const file = new File([fs.readFileSync(opts.imagePath)], "image.png", {
    type: "image/png",
  });
  form.append("0", file);

  const res = await axios.postForm(UPLOAD_API, form, {
    headers: { "Content-Type": "multipart/form-data" },
  });

  if (res.status !== 200) {
    throw new Error(`Upload failed: ${res.statusText}`);
  }

  // Returns the IPFS CID string — use this as the `meta` field in the token params.
  return res.data.data.create as string;
}
```

The returned string is the IPFS CID. Store it as `meta` and use it as-is in the token launch params.

references/preflight.md

# Preflight Checks

Verify all of the following before proceeding. Block and inform the user if any check fails.

## 1. viem installed

```bash
node -e "require('viem')" 2>/dev/null && echo OK || echo MISSING
```

If missing, install it:

```bash
npm install viem
```

## 2. EVM wallet

An EVM wallet capable of signing and sending transactions on BNB Chain (chain ID `56`) must be available. The method of signing (private key, hardware wallet, browser wallet, MPC, etc.) is determined by the caller — this skill mainly helps you construct the transaction data.

## 3. BNB mainnet RPC access

Ask for an RPC URL for BNB Chain mainnet (chain ID `56`). A public fallback is `https://bsc-dataseed.binance.org/`. 

Verify connectivity:

```typescript
import { createPublicClient, http } from "viem";
import { bsc } from "viem/chains";

const client = createPublicClient({ chain: bsc, transport: http(RPC_URL) });
const block = await client.getBlockNumber();
console.log("Latest block:", block);
```

## 4. Sufficient BNB balance

The wallet needs BNB for:
- Gas fees (launching costs ~0.002–0.010 BNB in gas).
- Any initial buy amount (`quoteAmt`) the user wants to spend.

Check balance:

```typescript
const balance = await client.getBalance({ address: walletAddress });
// balance is in wei; 1 BNB = 1e18 wei
```

Warn if balance is below 0.01 BNB (exclusive of launch buy amount).

Sponsored

Ads related to launch-bnb-token-on-flap and adjacent AI workflows.