Parfournir.
Skills/raunit-dev/PumpFun protocol

PumpFun protocol

Complete PumpFun Protocol guide for building token launches, bonding curves, and AMM integrations on Solana.

sdk
by @raunit-dev
SKILL.md

PumpFun Protocol Integration Guide

A comprehensive guide for building applications with PumpFun - Solana's leading token launch and AMM protocol enabling instant trading without initial liquidity.

Overview

PumpFun is a token launch and trading protocol on Solana offering:

  • Pump Program - Create SPL tokens with instant trading on bonding curves
  • PumpSwap (AMM) - Constant-product automated market maker for graduated tokens
  • Creator Fees - Automatic fee distribution to token creators
  • Token2022 Support - Modern token standard via create_v2 instruction
  • Mayhem Mode - Special mode for enhanced token launches
  • Program IDs

    | Program | Address |
    |---------|---------|
    | Pump Program | 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P |
    | PumpSwap AMM | pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA |
    | Pump Fees | pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ |
    | Mayhem Program | MAyhSmzXzV1pTf7LsNkrNwkWKTo4ougAJ1PPg47MD4e |

    Quick Start

    Installation

    # Install PumpFun SDKs
    npm install @pump-fun/pump-sdk @pump-fun/pump-swap-sdk

    Or with pnpm


    pnpm add @pump-fun/pump-sdk @pump-fun/pump-swap-sdk

    Basic Setup

    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');

    Pump Program (Bonding Curves)

    The Pump program enables creation of SPL tokens with instant trading on a bonding curve without requiring initial liquidity.

    How Bonding Curves Work

  • Token Creation - Create a token with initial virtual reserves

  • 2

    Details

    Categoryblockchain
    Typesdk
    Sourcegithub

    Runtime Requirements

    Environment variablesYOUR_SECRET_KEYPUMP_PROGRAM_IDPUMP_AMM_PROGRAM_IDPUMP_FEES_PROGRAM_ID

    Use this skill

    Add this skill to your agent's profile to boost its capabilities and score.

    Add to My Agent