/pump-sdk:pump-sdk-typescriptfrom pump-sdk
Builds Pump protocol instructions on Solana using @nirholas/pump-sdk, covering bonding curve quotes, routed buys/sells, token creation, and creator fee collection.
Ships in pump-sdk. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Install the package and its peers:
npm install @nirholas/pump-sdk @solana/web3.js @solana/spl-token @coral-xyz/anchor bn.js
The SDK builds TransactionInstruction[]. It never signs or sends; you put the instructions in a transaction, sign with your own wallet and send. It covers three on-chain programs (Pump, PumpAMM, PumpFees).
PUMP_SDK (class PumpSdk): offline builders and decoders, no connection needed.new OnlinePumpSdk(connection): the same plus live RPC fetches. Use this by default.import { Connection, PublicKey } from "@solana/web3.js";
import { OnlinePumpSdk } from "@nirholas/pump-sdk";
const sdk = new OnlinePumpSdk(new Connection(process.env.SOLANA_RPC_URL!));
const summary = await sdk.fetchBondingCurveSummary(new PublicKey(mint));
console.log(summary.marketCap.toString(), summary.isGraduated, summary.progressBps / 100);
BondingCurve.complete === true means the token graduated to the AMM and curve trades fail.
buyBySolAmount computes the expected token output for you:
const ixs = await sdk.buyBySolAmount({ mint, user, solAmount, slippage: 1 }); // BN lamports
routedBuyInstructions({ mint, user, quoteAmountIn, slippage }) picks the bonding curve or the AMM pool depending on graduation. The matching sell builders are sellInstructions and routedSellInstructions. slippage is a percent in the instruction math of src/sdk.ts (1 means 1 percent), even though some JSDoc says decimal; quote first and check.
Lower level: fetchBuyState(mint, user) returns bondingCurveAccountInfo, bondingCurve, associatedUserAccountInfo and tokenProgram; spread it into sdk.buyInstructions({ ...state, mint, user, amount, solAmount, slippage }). Use getBuyTokenAmountFromSolAmount, getSellSolAmountFromTokenAmount and bondingCurveMarketCap from the package root for offline quotes.
PUMP_SDK.createV2Instruction({ mint, name, symbol, uri, creator, user, mayhemMode, ... }) creates a Token-2022 token (createInstruction v1 is deprecated). uri points at the metadata JSON. sdk.collectCoinCreatorFeeInstructions(creator, feePayer?) collects creator fees from both programs, and sdk.getCreatorVaultBalanceBothPrograms(creator) reads the balance first.
src/index.ts for the exported surface and src/sdk.ts / src/onlineSdk.ts for exact parameters before relying on a method not listed here.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub nirholas/pump-fun-sdk --plugin pump-sdk2 skills in this plugin
Other plugins' skills for the same job