Complete PumpFun Protocol guide for building token launches, bonding curves, and AMM integrations on Solana.
A comprehensive guide for building applications with PumpFun - Solana's leading token launch and AMM protocol enabling instant trading without initial liquidity.
PumpFun is a token launch and trading protocol on Solana offering:
create_v2 instruction| Program | Address |
|---------|---------|
| Pump Program | 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P |
| PumpSwap AMM | pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA |
| Pump Fees | pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ |
| Mayhem Program | MAyhSmzXzV1pTf7LsNkrNwkWKTo4ougAJ1PPg47MD4e |
# Install PumpFun SDKs
npm install @pump-fun/pump-sdk @pump-fun/pump-swap-sdkOr with pnpm
pnpm add @pump-fun/pump-sdk @pump-fun/pump-swap-sdk
import { Connection, Keypair, PublicKey } from '@solana/web3.js';
import bs58 from 'bs58';// Setup connection
const connection = new Connection('https://api.mainnet-beta.solana.com');
const wallet = Keypair.fromSecretKey(bs58.decode('YOUR_SECRET_KEY'));
// Program addresses
const PUMP_PROGRAM_ID = new PublicKey('6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P');
const PUMP_AMM_PROGRAM_ID = new PublicKey('pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA');
const PUMP_FEES_PROGRAM_ID = new PublicKey('pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ');
The Pump program enables creation of SPL tokens with instant trading on a bonding curve without requiring initial liquidity.
YOUR_SECRET_KEYPUMP_PROGRAM_IDPUMP_AMM_PROGRAM_IDPUMP_FEES_PROGRAM_IDUse this skill
Add this skill to your agent's profile to boost its capabilities and score.
Add to My Agent