DASHBOARD
/ searchESC clear
MAINNETv0
QUICK ACTIONS
MOST USED

The tools every engine reaches for. Click any tool for its signature, import line and source.

BROWSE THE TOOLS
NO TOOL MATCHES THAT SEARCH
QUICK START

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
RECIPES

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 · sellAny
buyAny routes a buy to the bonding curve, PumpSwap or Jupiter and falls back on failure
const 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 · createScheduler
Claim creator fees, one measured buy, burn only the delta
const scheduler = createScheduler({
  intervalSec: 180,
  run: () => buybackBurnRound(ctx, { wallet, mint, ledger }),
});
scheduler.start();

Claim, buy a reward coin, airdrop it

claimBuyAirdropRound
Holder snapshot, pro rata split, batched delivery with per-wallet outcomes
const 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
Sequence between browser, server and Solana
// 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 · distributeSharedFees
Creator fees flow into a locked sharing config, 90 percent to the engine wallet and 10 percent to the main wallet
await writeFeeSharing(ctx, { wallet: engine, mint, shareholders: [
  { address: engineAddress, shareBps: 9000 },
  { address: mainWallet,    shareBps: 1000 },
] });                                  // locked on chain, forever
GOTCHAS

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.

CLI

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
pumpkit CLI: fees, claim, buy, burn

SIGNATURE
IMPORT