Skip to content

x402agent/SolanaOS / skills/pumpfun-fees

pumpfun-fees

Verified

Configure and claim creator fee sharing on Pump.fun tokens

PumpFun Fee Sharing

Set up, manage, and claim creator fee sharing on Pump.fun tokens. Supports up to 10 shareholders with configurable basis point splits.

Prerequisites

  • Token creator wallet
  • HELIUS_RPC_URL configured
  • Token must be active (bonding curve or graduated)

Fee Sharing Setup

1. Create Fee Sharing Config

import { PUMP_SDK } from "solanaos";

const createConfigIx = await PUMP_SDK.createFeeSharingConfig({
  creator: wallet.publicKey,
  mint: tokenMint,
  pool: null, // null for pre-graduation tokens
});

2. Set Shareholders

Shares must total exactly 10,000 BPS (100%). Maximum 10 shareholders.

const updateIx = await PUMP_SDK.updateFeeShares({
  authority: wallet.publicKey,
  mint: tokenMint,
  currentShareholders: [wallet.publicKey],
  newShareholders: [
    { address: wallet.publicKey, shareBps: 7000 },           // 70%
    { address: new PublicKey("Partner..."), shareBps: 2000 }, // 20%
    { address: new PublicKey("Dev..."), shareBps: 1000 },     // 10%
  ],
});

3. Claim Accumulated Fees

const sdk = new OnlinePumpSdk(connection);
const claimResult = await sdk.distributeCreatorFees({
  mint: tokenMint,
  creator: wallet.publicKey,
});

Fee Tier Reference

Fees are tiered by market cap:

Market Cap (SOL)Protocol FeeCreator Fee
< 100HigherLower
100-1000StandardStandard
> 1000LowerHigher

Error Handling

ErrorCauseFix
NoShareholdersErrorEmpty arrayProvide ≥1 shareholder
TooManyShareholdersError>10 shareholdersReduce to ≤10
ZeroShareErrorShare ≤ 0Set positive values
InvalidShareTotalErrorSum ≠ 10,000Ensure total = 10,000 BPS
DuplicateShareholderErrorSame address twiceRemove duplicates

Token Incentives

Track unclaimed $PUMP reward tokens:

import { totalUnclaimedTokens, currentDayTokens } from "solanaos";

const unclaimed = totalUnclaimedTokens(userVolumeAccumulator, globalVolumeAccumulator);
const todayTokens = currentDayTokens(globalVolumeAccumulator);

Agent Integration

The fee-claimer agent role uses this skill to automatically monitor and claim accumulated creator fees across all managed tokens.

slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 197kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall