coin-fees
БесплатноЗапускает вложенные скриптыНе проверенInspect and manage creator fees on pump.fun — determine fee destinations (cashback, holder rewards, shared config, or direct creator), collect fees…
от nirholas★ 289 звёзд на GitHubОб этом скилле
Before Starting Work Critical - Ask these from user
MANDATORY — Do NOT write or modify any code until every item below is answered by the user:
- RPC URL provided or a fallback agreed upon (for any on-chain or tx-building step)
- Signer wallet public key (fee payer / crank caller)
- Framework confirmed (Next.js, Express, CLI scripts only, other)
- Coin mint address provided
- Operation type confirmed: inspect fee destination, collect (crank) fee, distribute shared fees, check distributable amount, or create/update sharing config
You MUST ask the user for ALL unchecked items in your very first response. Do not assume defaults. Do not proceed until the user has explicitly answered each one.
API (preferred) — https://fun-block.pump.fun
Use the API to build fee transactions instead of running scripts directly. The API handles account resolution, sharing config detection, and graduation status automatically.
POST /agents/collect-fees
Builds a transaction to collect or distribute creator fees. Automatically detects whether the coin uses a sharing config and builds the appropriate transaction (collect for direct creator, distribute for sharing config).
Request body:
{
"mint": "<TOKEN_MINT>",
"user": "<PUBKEY>",
"frontRunningProtection": false,
"tipAmount": 0,
"encoding": "base64"
}
Only mint and user are required.
tipAmountis a Jito tip in SOL (e.g.0.0001for 100,000 lamports). Only relevant whenfrontRunningProtectionistrue.
Encoding: The API defaults to
"base58"encoding. Always pass"encoding": "base64"in the request body — scripts already output base64. When sending the signed transaction to an RPC or Jito endpoint, the encoding used to serialize the transaction must match theencodingparameter passed in the send call. Mismatched encodings will cause transaction failures. Always explicitly passencoding: "base64"insendTransaction/simulateTransactionRPC calls — never rely on the RPC's default.
Response:
{
"transaction": "<base64-encoded VersionedTransaction>",
"creator": "<base58 creator address>",
"isGraduated": true,
"usesSharingConfig": false
}
POST /agents/sharing-config
Builds a transaction to create or update a fee sharing config for a coin. Auto-detects create vs update mode based on on-chain state.
Request body:
{
"mint": "<TOKEN_MINT>",
"user": "<PUBKEY>",
"shareholders": [
{ "address": "<PUBKEY>", "bps": 5000 },
{ "address": "<PUBKEY>", "bps": 5000 }
],
"mode": "create",
"frontRunningProtection": false,
"tipAmount": 0,
"encoding": "base64"
}
Only mint, user, and shareholders are required. mode is auto-detected if omitted. bps values must total exactly 10,000 (100%). Maximum 10 shareholders.
tipAmountis a Jito tip in SOL (e.g.0.0001for 100,000 lamports). Only relevant whenfrontRunningProtectionistrue.
Response:
{
"transaction": "<base64-encoded VersionedTransaction>",
"mode": "create",
"sharingConfigAddress": "<base58>",
"shareholderCount": 2,
"shareholders": [{ "address": "<base58>", "bps": 5000 }, { "address": "<base58>", "bps": 5000 }],
"isGraduated": true
}
Runnable examples (Node scripts — only when user explicitly requests)
Use {baseDir} as the path to this skill folder (OpenClaw and Agent Skills clients often expose this placeholder).
cd {baseDir}
npm install
export SOLANA_RPC_URL=https://rpc.solanatracker.io/public
| Operation | Script | Example |
|---|---|---|
| Fetch coin state (HTTP) | scripts/fetch-coin.mjs |
node scripts/fetch-coin.mjs --mint <MINT> --subset |
| Inspect fee destination & vault balances | scripts/fetch-fee-info.mjs |
node scripts/fetch-fee-info.mjs --mint <MINT> |
| Collect creator fee (direct, no sharing) | scripts/build-collect-fee-tx.mjs |
node scripts/build-collect-fee-tx.mjs --mint <MINT> --user <PUBKEY> |
| Distribute shared fees (sharing config) | scripts/build-distribute-fees-tx.mjs |
node scripts/build-distribute-fees-tx.mjs --mint <MINT> --user <PUBKEY> |
| Check distributable amounts (simulation) | scripts/fetch-distributable-info.mjs |
node scripts/fetch-distributable-info.mjs --mint <MINT> |
| Create or update sharing config | scripts/build-sharing-config-tx.mjs |
node scripts/build-sharing-config-tx.mjs --mint <MINT> --user <PUBKEY> --shareholders '<JSON>' |
- Run any script with
--helpfor full flags (--compute-units,--priority-micro-lamports,--front-runner-protection,--tip-sol, etc.). - Tx builders print one JSON object on stdout with
transaction(base64-encoded VersionedTransaction). Never pass end-user private keys into these scripts. - OpenClaw: If YAML
metadataever fails to parse, collapsemetadatato a single-line JSON object per [OpenClaw skills](https://docs.openclaw.ai/ski
Установить coin-fees в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл coin-fees?
Inspect and manage creator fees on pump.fun — determine fee destinations (cashback, holder rewards, shared config, or direct creator), collect fees, distribute shared fees to shareholders, and query vault balances. Prefer runnable Node scripts in this skill folder; use @pump-fun/pump-sdk and @pump-fun/pump-swap-sdk for custom integrations.
Как установить скилл coin-fees?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл coin-fees запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic