Solana memecoin launchpad that mints tokens against a fixed-supply bonding curve and auto-graduates to PumpSwap (formerly Raydium) once a market-cap threshold is hit. The official `@pump-fun/pump-sdk` exposes offline instruction builders for `create`, `buy_v2`, and `sell_v2`, with no presale and a flat 1B token supply per coin.
- 01launching Solana memecoins with no presale
- 02bonding-curve buys/sells programmatically
- 03trading bots and sniping infrastructure
- 04tracking graduation events and PumpSwap migration
- 05creator-fee-share and tiered-fee logic
- pnpm add @pump-fun/pump-sdk @solana/web3.js @coral-xyz/anchor bn.js
| Variable | Scope | Description |
|---|---|---|
| SOLANA_RPC_URL | Server | Solana mainnet RPC endpoint (Helius, QuickNode, Triton). Public mainnet-beta is rate-limited and unreliable for bonding-curve PDA reads under load. |
| PUMP_FEE_RECIPIENT | Server | Optional — your fee-recipient pubkey if you are launching coins via the SDK and want creator-fee revenue routed through you. |
Use the official `@pump-fun/pump-sdk`. Construct a `PumpSdk(connection)` then derive bonding-curve PDAs via `bondingCurvePda(mint)` and read state with `fetchBondingCurve()`. For trades, call `buyInstructions({ global, bondingCurveAccountInfo, bondingCurve, associatedUserAccountInfo, mint, user, solAmount, slippage })` and `sellInstructions({ ..., tokenAmount, slippage })` to get versioned-tx instructions; prefer `buy_v2` / `sell_v2` (creator-fee-aware). Watch the `complete` flag on the bonding-curve account — once true, the curve has graduated and trades must route through PumpSwap (or Raydium for legacy coins). For new coin launches use the `create` instruction with metadata uploaded to IPFS via the public Pump uploader.
- ⚑Bonding-curve graduation triggers near ~$69k market cap on Solana; once `bondingCurve.complete === true`, all `buy`/`sell` ixs revert — switch to PumpSwap routing.
- ⚑Migration target changed: graduated tokens now go to PumpSwap, not Raydium — older guides and SDKs still pointing at Raydium AMM v4 will silently fail post-graduation.
- ⚑Slippage is enforced on-chain via `maxSolCost` / `minSolOutput`; quotes go stale in 1–2 slots — re-derive amounts on user confirmation, do not cache.
- ⚑Pump.fun has aggressive rug-pull and copy-cat coin spam; always verify creator wallet, Top-10 holder concentration, and metadata authenticity before listing in your UI.
- ⚑Set `computeUnitLimit ≥ 250_000` and dynamic priority fees (Helius `getPriorityFeeEstimate` or Jito tip) — landing rate during memecoin storms is otherwise abysmal.
- ⚑Token-2022 mints are not supported on the legacy bonding curve; new coins use SPL-Token mints with creator-fee splits enforced by the program.
- ⚑Jurisdictional restrictions apply — Pump.fun geofences several regions; if you re-expose its API, mirror their geo-blocking or you carry the compliance risk.