Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

coin-fees

БесплатноЗапускает вложенные скриптыНе проверен

Inspect and manage creator fees on pump.fun — determine fee destinations (cashback, holder rewards, shared config, or direct creator), collect fees…

nirholasот 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.

tipAmount is a Jito tip in SOL (e.g. 0.0001 for 100,000 lamports). Only relevant when frontRunningProtection is true.

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 the encoding parameter passed in the send call. Mismatched encodings will cause transaction failures. Always explicitly pass encoding: "base64" in sendTransaction / simulateTransaction RPC 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.

tipAmount is a Jito tip in SOL (e.g. 0.0001 for 100,000 lamports). Only relevant when frontRunningProtection is true.

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 --help for 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 metadata ever fails to parse, collapse metadata to a single-line JSON object per [OpenClaw skills](https://docs.openclaw.ai/ski
Полный SKILL.md на GitHub

Установить coin-fees в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

.gitignoreREADME.mdhandlers.jsmanifest.jsonpackage-lock.jsonpackage.jsonscripts/build-collect-fee-tx.mjsscripts/build-distribute-fees-tx.mjsscripts/build-sharing-config-tx.mjsscripts/fetch-coin.mjsscripts/fetch-distributable-info.mjsscripts/fetch-fee-info.mjsscripts/lib/args.mjsscripts/lib/coin-api.mjsscripts/lib/coin-resolve.mjsscripts/lib/compute.mjsscripts/lib/constants.mjsscripts/lib/env.mjsscripts/lib/jito.mjsscripts/lib/sweep.mjsscripts/lib/tx-build.mjstools.json

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить coin-fees с