repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | --- |
| #2 | description: Configure and claim creator fee sharing on Pump.fun tokens |
| #3 | --- |
| #4 | |
| #5 | # PumpFun Fee Sharing |
| #6 | |
| #7 | Set up, manage, and claim creator fee sharing on Pump.fun tokens. Supports up to 10 shareholders with configurable basis point splits. |
| #8 | |
| #9 | ## Prerequisites |
| #10 | |
| #11 | - Token creator wallet |
| #12 | - `HELIUS_RPC_URL` configured |
| #13 | - Token must be active (bonding curve or graduated) |
| #14 | |
| #15 | ## Fee Sharing Setup |
| #16 | |
| #17 | ### 1. Create Fee Sharing Config |
| #18 | |
| #19 | ```typescript |
| #20 | import { PUMP_SDK } from "@nirholas/pump-sdk"; |
| #21 | |
| #22 | const createConfigIx = await PUMP_SDK.createFeeSharingConfig({ |
| #23 | creator: wallet.publicKey, |
| #24 | mint: tokenMint, |
| #25 | pool: null, // null for pre-graduation tokens |
| #26 | }); |
| #27 | ``` |
| #28 | |
| #29 | ### 2. Set Shareholders |
| #30 | |
| #31 | Shares must total exactly **10,000 BPS** (100%). Maximum **10 shareholders**. |
| #32 | |
| #33 | ```typescript |
| #34 | const updateIx = await PUMP_SDK.updateFeeShares({ |
| #35 | authority: wallet.publicKey, |
| #36 | mint: tokenMint, |
| #37 | currentShareholders: [wallet.publicKey], |
| #38 | newShareholders: [ |
| #39 | { address: wallet.publicKey, shareBps: 7000 }, // 70% |
| #40 | { address: new PublicKey("Partner..."), shareBps: 2000 }, // 20% |
| #41 | { address: new PublicKey("Dev..."), shareBps: 1000 }, // 10% |
| #42 | ], |
| #43 | }); |
| #44 | ``` |
| #45 | |
| #46 | ### 3. Claim Accumulated Fees |
| #47 | |
| #48 | ```typescript |
| #49 | const sdk = new OnlinePumpSdk(connection); |
| #50 | const claimResult = await sdk.distributeCreatorFees({ |
| #51 | mint: tokenMint, |
| #52 | creator: wallet.publicKey, |
| #53 | }); |
| #54 | ``` |
| #55 | |
| #56 | ## Fee Tier Reference |
| #57 | |
| #58 | Fees are tiered by market cap: |
| #59 | |
| #60 | | Market Cap (SOL) | Protocol Fee | Creator Fee | |
| #61 | |-------------------|-------------|-------------| |
| #62 | | < 100 | Higher | Lower | |
| #63 | | 100-1000 | Standard | Standard | |
| #64 | | > 1000 | Lower | Higher | |
| #65 | |
| #66 | ### Error Handling |
| #67 | |
| #68 | | Error | Cause | Fix | |
| #69 | |-------|-------|-----| |
| #70 | | `NoShareholdersError` | Empty array | Provide ≥1 shareholder | |
| #71 | | `TooManyShareholdersError` | >10 shareholders | Reduce to ≤10 | |
| #72 | | `ZeroShareError` | Share ≤ 0 | Set positive values | |
| #73 | | `InvalidShareTotalError` | Sum ≠ 10,000 | Ensure total = 10,000 BPS | |
| #74 | | `DuplicateShareholderError` | Same address twice | Remove duplicates | |
| #75 | |
| #76 | ## Token Incentives |
| #77 | |
| #78 | Track unclaimed $PUMP reward tokens: |
| #79 | |
| #80 | ```typescript |
| #81 | import { totalUnclaimedTokens, currentDayTokens } from "@nirholas/pump-sdk"; |
| #82 | |
| #83 | const unclaimed = totalUnclaimedTokens(userVolumeAccumulator, globalVolumeAccumulator); |
| #84 | const todayTokens = currentDayTokens(globalVolumeAccumulator); |
| #85 | ``` |
| #86 | |
| #87 | ## Agent Integration |
| #88 | |
| #89 | The `fee-claimer` agent role uses this skill to automatically monitor and claim accumulated creator fees across all managed tokens. |
| #90 |