1---2name: pumpfun-claim3description: "Use when the user says /claim or wants to collect Pump.fun creator fees (or legacy cashback) for a coin. Works out where the fees go (direct creator, sharing config, or cashback), shows what's claimable, and returns an UNSIGNED collect/distribute transaction."4metadata:5 source: https://skillmd.com/skills/solizardking/pumpfun-claim6---78# Pump.fun claim creator fees910## Safety rules (always)11- Never sign, send, or broadcast. Never ask for or accept a private key or seed phrase. Output only an unsigned base64 transaction plus a human summary for the user to review and sign in their own wallet.12- Ask for anything missing: token (mint/CA/name), side, size, the user's wallet pubkey (for builds), slippage (default 8%, accept 5–10% unless the user says otherwise).13- Before any build, show: venue (bonding curve or PumpSwap), quote asset (SOL/USDC/pump coin), price, market cap (quote + SOL), graduation %, fee tier, expected out, price impact, min-out / max-in after slippage.14- Warn clearly when: graduation > 90%; price impact > 5% (strong warning > 15%) or pool/curve liquidity is thin; curve real reserves ≈ 0, no tokens left, or anything looks drained/suspicious; mayhem or cashback coin; creator holds or just dumped a large share.15- Simulate the unsigned tx (RPC simulateTransaction with sigVerify=false, replaceRecentBlockhash=true, encoding base64) and report the result. Funding errors (custom 0x1, AccountNotInitialized 3012) just mean the wallet lacks that balance.16- Units: SOL 9 decimals, pump coins 6, USDC 6. Read the token program from the mint account owner on-chain, never from an HTTP API.1718## Steps191. Ask for the coin mint(s) and the wallet pubkey that will sign (creator, shareholder or trader).202. Find the fee destination. Read the bonding curve (or the PumpSwap pool if the coin graduated): a cashback coin pays fees to traders. Otherwise, check for a sharing config (Pump Fees program pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ): if one exists, fees are distributed to its shareholders by bps; if not, they go straight to the coin creator.213. Show the claimable amount. The creator vault PDA ["creator-vault", creator] on the pump program holds the SOL balance minus rent. On graduated coins also check the PumpSwap creator vault ATA. New v3/v2 trades keep fees on the curve or pool until swept, so mention that some fees may still be unswept.224. Build: `curl -s -X POST https://fun-block.pump.fun/agents/collect-fees -H 'content-type: application/json' -d '{"mint":"<MINT>","user":"<PUBKEY>","encoding":"base64"}'`. It returns `transaction`, `creator`, `isGraduated` and `usesSharingConfig`.235. To create or update fee sharing: `POST https://fun-block.pump.fun/agents/sharing-config` with `{"mint","user","shareholders":[{"address","bps"}],"encoding":"base64"}`. The bps must add up to 10000, with at most 10 shareholders. Confirm the split with the user first.246. Simulate, summarize (who receives how much) and return the unsigned tx. Never sign it.