Creator fees
See and claim the creator fees your coins earned.
Every pump.fun coin pays its creator a share of each trade, on the bonding curve and after it moves to PumpSwap. Check what a creator wallet can claim, then claim it all in one transaction.
GEThttps://api.trenchytools.lol/api/sol/creator-fees
| Field | Type | Description |
|---|---|---|
| wallet | string | The creator (dev) wallet. |
cURL
curl "https://api.trenchytools.lol/api/sol/creator-fees?wallet=DEV_WALLET&api-key=YOUR_API_KEY"
Response
{ "wallet": "…", "lamports": "18250000", "sol": 0.01825 }
Claim them
Ask /api/sol/trade-local for action: "collectCreatorFee". No mint needed: one transaction claims every coin's fees. Sign it with the creator wallet and send it. There is no API fee on claims.
JavaScript
const res = await fetch(`${BASE}/api/sol/trade-local?api-key=${API_KEY}`, {
method: 'POST', headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ publicKey: dev.publicKey.toBase58(), action: 'collectCreatorFee', priorityFee: 0.0001 }),
})
const tx = VersionedTransaction.deserialize(new Uint8Array(await res.arrayBuffer()))
tx.sign([dev])
// then POST it to /api/sol/send
A wallet with nothing to claim gets
409 nothing_to_collect.