pump-sdk-core
Installation
SKILL.md
Pump SDK Core — Instruction Building & On-Chain Interaction
Build, extend, and maintain the core Pump SDK — an offline-first TypeScript SDK that constructs Solana TransactionInstructions for token creation, buying, selling, migration, and creator fee collection across three on-chain programs (Pump, PumpAMM, PumpFees) plus the Mayhem program.
Context
The SDK is published as @8bitsats/pump-sdk (npm) and powers the Pump protocol — a Solana-based token launchpad with bonding curve pricing, automatic AMM migration after graduation, tiered fees, and creator fee sharing. The codebase uses Anchor for IDL-based instruction building and supports both Token (SPL) and Token-2022 token programs.
Key Files
src/sdk.ts—PumpSdkclass with all instruction builders and account decoderssrc/onlineSdk.ts—OnlinePumpSdkclass extending offline SDK with live RPC fetchessrc/index.ts— barrel re-export module defining the public API surfacesrc/state.ts— TypeScript interfaces for all on-chain account statesrc/pda.ts— Program Derived Address derivation for all programssrc/idl/pump.ts,src/idl/pump_amm.ts,src/idl/pump_fees.ts— Anchor IDL definitions