pump-cli
Inspect Pump protocol tokens, quote trades and read creator fees on Solana with the pump CLI from @nirholas/pump-sdk, or use the…
Write TypeScript that builds Pump protocol instructions on Solana with @nirholas/pump-sdk, covering OnlinePumpSdk, PUMP_SDK, bonding curve quotes, routed buys and creator fee collection. Use when adding Pump trading or token creation to an app.
Claude Code
$ npx -y skills add nirholas/pump-fun-sdk --skill pump-sdk-typescript --agent claude-code
Codex
$ npx skills add nirholas/pump-fun-sdk --skill pump-sdk-typescript -a codex -y
Cursor
$ npx skills add nirholas/pump-fun-sdk --skill pump-sdk-typescript -a cursor -y
Gemini CLI
$ npx skills add nirholas/pump-fun-sdk --skill pump-sdk-typescript -a gemini-cli -y
GitHub Copilot
$ npx skills add nirholas/pump-fun-sdk --skill pump-sdk-typescript -a github-copilot -y
OpenCode
$ npx skills add nirholas/pump-fun-sdk --skill pump-sdk-typescript -a opencode -y
Windsurf
$ npx skills add nirholas/pump-fun-sdk --skill pump-sdk-typescript -a windsurf -y
name: pump-sdk-typescript description: Write TypeScript that builds Pump protocol instructions on Solana with @nirholas/pump-sdk, covering OnlinePumpSdk, PUMP_SDK, bonding curve quotes, routed buys and creator fee collection. Use when adding Pump trading or token creation to an app.
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).
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.
Open-source framework for building PumpFun Telegram bots on Solana. Claim monitors, channel feeds, group trackers, whale alerts — build your own or use ours. PumpKit Web App + Documentation
Inspect Pump protocol tokens, quote trades and read creator fees on Solana with the pump CLI from @nirholas/pump-sdk, or use the…
Admin and authority operations for the Pump protocol — set coin creator, update token incentives, set IDL authority, claim…
AI agent integration layer for the Pump SDK — agent instruction files, .well-known discovery, LLM context documents, 15+ skill…
Constant-product AMM bonding curve math for Pump token pricing — buy/sell quoting, fee-aware calculations, market cap…
Build and release pipeline for the Pump SDK — tsup TypeScript builds, Cargo release profiles, semantic release with commitizen,…
Read-only query methods for PumpFun claims — unclaimed token rewards, creator vault balances, volume accumulators, distributable…
Run a WCAG 2.1 AA accessibility audit on a design or page. Trigger with "audit accessibility", "check a11y", "is this…
Turn repeatable outputs of a one-person company into compounding assets. Use when Codex needs to explain asset-compounding…
dontbesilent 商业工具箱的技能调度台,根据当前问题和反馈选择下一步,在对话中直接执行、澄清、组合或对照尝试 Skill。用户不知道从哪里开始、需要调整处理方法、第一次使用…
Help define company values and culture for a minimalist business. Use when someone is setting up their company culture, preparing…