Every pump.fun tool you need. In one kit.
Trade. Launch. Claim fees. Snapshot holders. Airdrop. Burn. Each one a plain function, pulled out of engines running in production and kept current with every pump.fun program update.
npm i github:openpumptrade/pumpkit
PROTOCOL UPDATES
TRACKEDblock0Tax() reads it live.
buildCreate() appends the accounts.
claimCreatorFees() sweeps first.
holderReward: true.
The tools every engine reaches for. Click any tool for its signature, import line and source.
Three steps to your first call
1 · Install
Install from GitHub, or copy src/ into your project and read every line. Node 20+, no build.
2 · Make a context
createContext({ rpcUrl }) once. Every tool takes it first, then plain values. Nothing reads process.env behind your back.
3 · Call a tool
Amounts are raw units as bigint. Everything that signs takes a wallet; everything else works without keys.
import { createContext, keypairFromSecret, buyMeasured, burnDelta } from "pumpkit"; const ctx = createContext({ rpcUrl: process.env.RPC_URL }); const wallet = keypairFromSecret(process.env.PRIVATE_KEY); const buy = await buyMeasured(ctx, { wallet, mint, lamports: 100_000_000n }); // curve, PumpSwap or Jupiter await burnDelta(ctx, { wallet, mint, balanceBeforeRaw: buy.balanceBeforeRaw }); // burn only what the buy brought in
Five things you can ship today
Each recipe is a few calls. The diagrams show what happens on chain; the code is what you write.
Buy any coin, wherever it trades
buyMeasured · sellAnyconst buy = await buyMeasured(ctx, { wallet, mint, lamports: 500_000_000n }); // { sig, venue: "curve" | "pumpswap" | "jupiter", spentLamports, boughtRaw } await sellAny(ctx, { wallet, mint, tokenAmountRaw: buy.boughtRaw });
Buyback and burn
buybackBurnRound · createSchedulerconst scheduler = createScheduler({ intervalSec: 180, run: () => buybackBurnRound(ctx, { wallet, mint, ledger }), }); scheduler.start();
Claim, buy a reward coin, airdrop it
claimBuyAirdropRoundconst r = await claimBuyAirdropRound(ctx, { wallet, mint, rewardMint, // rewardMint unset: pays SOL directly snapshotOpts: { maxHolders: 4000 }, }); console.log(r.note, r.txs);
Trustless launch
buildLaunchTxs · verifyLaunch · relaySigned// server: unsigned bytes only const built = await buildLaunchTxs(ctx, { user, mint, name, symbol, uri, feeLamports, treasury }); // browser, before the wallet popup const checks = await verifyLaunch(connection, txs, lookupTable, expected); if (!allOk(checks)) throw new Error("bytes do not match");
A fee split nobody can redirect
writeFeeSharing · distributeSharedFeesawait writeFeeSharing(ctx, { wallet: engine, mint, shareholders: [ { address: engineAddress, shareBps: 9000 }, { address: mainWallet, shareBps: 1000 }, ] }); // locked on chain, forever
Mistakes you do not have to make
Each of these cost real money or a production incident. The fix is already in the code. The README lists all of them.
The fee recipients rotated
Since Nov 25 2026 the old protocol fee recipients fail, and the official SDK still defaults some helpers to them. pumpkit reads the live ones from chain and throws before sending a stale one.
Block 0 tax is wired, at rate 0
When pump.fun turns it on, a same-slot snipe pays extra unless the wallet is the coin's creator. Read the rate live with block0Tax() instead of hardcoding it.
Token-2022, not classic SPL
pump.fun mints use Token-2022. Assume the classic program and you compute the wrong token account: the buy confirms, no tokens arrive. Always mintProgramId().
Never act on the whole balance
The engine wallet often holds the dev bag. Burning "everything" burns that too. Measure before and after, then act on the difference.
Pools and curves hold your fees
Creator fees are parked until someone sweeps them. claimCreatorFees({ mint }) sweeps first.
"Expired" does not mean failed
A slow RPC reports block height exceeded for a transaction that landed. pumpkit checks the signature before throwing, so a retry never buys twice.
Redeploys overlap
Two containers run together for a few seconds. An advisory lock on a reserved connection and a crash-safe ledger keep a round from running twice.
Airdrop rent adds up
Opening a token account costs about 0.002 SOL per holder. pumpkit pays it once per wallet, and only when the drop is worth it.
The tools from a terminal
For operations and for testing a wallet or coin by hand. Everything that moves funds needs --yes.
# read-only, no wallet pumpkit protocol [mint] # live fee recipients, rotation status, block 0 tax pumpkit info <mint> # program, creator, tax, market, sharing config pumpkit holders <mint> # snapshot, largest first pumpkit simulate-create "name" "TICKER" # signs with PRIVATE_KEY pumpkit claim --yes # claim creator fees pumpkit buy <mint> 0.1 --yes # measured buy, any venue pumpkit airdrop <mint> --sol 1 --yes
