Skip to content

x402agent/SolanaOS / skills/pumpfun-launcher

pumpfun-launcher

Verified

Launch new tokens on Pump.fun directly via the Pump SDK

PumpFun Token Launcher

Launch new tokens on the Pump.fun protocol using the native Pump SDK integrated into SolanaOS.

Prerequisites

  • Solana wallet configured (solanaos birth)
  • HELIUS_RPC_URL or SOLANA_RPC_URL set in vault
  • Sufficient SOL balance for transaction fees (~0.05 SOL)

How It Works

The Pump SDK provides offline instruction builders for token creation. This skill uses the PumpSdk.createV2Instruction() method to build a token creation transaction.

Token Creation Flow

  1. Generate a new mint keypair
  2. Upload metadata JSON to Arweave/IPFS (name, symbol, image, description)
  3. Build the createV2 instruction via PUMP_SDK.createV2Instruction()
  4. Optionally build a combined createV2AndBuy to purchase initial supply
  5. Sign and send the transaction

Example Usage

import { Keypair, Connection } from "@solana/web3.js";
import { PUMP_SDK, OnlinePumpSdk, getBuyTokenAmountFromSolAmount } from "solanaos";

const connection = new Connection(process.env.HELIUS_RPC_URL!);
const mintKeypair = Keypair.generate();
const creator = wallet.publicKey;

// Create token
const createIx = await PUMP_SDK.createV2Instruction({
  mint: mintKeypair.publicKey,
  name: "My Token",
  symbol: "MYTKN",
  uri: "https://arweave.net/metadata.json",
  creator,
  user: creator,
  mayhemMode: false,
});

// Or create + buy in one transaction
const sdk = new OnlinePumpSdk(connection);
const global = await sdk.fetchGlobal();
const ixs = await PUMP_SDK.createV2AndBuyInstructions({
  global,
  mint: mintKeypair.publicKey,
  name: "My Token",
  symbol: "MYTKN",
  uri: "https://arweave.net/metadata.json",
  creator,
  user: creator,
  amount: new BN(1_000_000_000), // tokens to buy
  solAmount: new BN(100_000_000),  // 0.1 SOL
  mayhemMode: false,
});

Mayhem Mode

Set mayhemMode: true for tokens with randomized bonding curve parameters. This creates unpredictable pricing dynamics.

Safety Notes

  • Always test on devnet first — never launch tokens with real funds without testing
  • Use mock keypairs for development — never commit real wallet keys
  • Token creation is irreversible — once created, the bonding curve is live

On-Chain Programs

ProgramAddress
Pump6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P
PumpAMMpAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA
PumpFeespfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 197kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall