pumpfun

Implements token launches, bonding curve trades, and PumpSwap AMM operations on Solana.

1|1|Updated May 21, 2026
One-click install
npx skills add https://github.com/naruto11eth/cryptoskills --skill pumpfun-naruto11eth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pumpfun
Source: https://github.com/naruto11eth/cryptoskills/tree/main/skills/pumpfun
Command: npx skills add https://github.com/naruto11eth/cryptoskills --skill pumpfun-naruto11eth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @solana/web3.js, @solana/spl-token, @pump-fun/pump-sdk, @pump-fun/pump-swap-sdk, bs58, and includes references (resource) components.

What problem does it solve? AI agents and developers lack accurate, up-to-date knowledge of PumpFun's program IDs, instruction layouts, PDA derivations, and fee account requirements, leading to failed transactions and integration errors on Solana. ## Core Features & Use Cases - Bonding Curve Trading: Create SPL or Token2022 tokens and execute buy/sell operations on PumpFun bonding curves with correct discriminators, PDAs, and slippage protection. - PumpSwap AMM Integration: Perform swaps, add/remove liquidity, and migrate graduated tokens on the PumpSwap constant-product AMM. - Fee Management: Handle dynamic fee tiers, creator fee collection, fee sharing configurations, and the fee config accounts required since September 2025. - Use Case: Build a TypeScript trading bot that buys a newly launched token on the bonding curve, detects graduation, and routes subsequent trades through the PumpSwap pool. ## Quick Start Ask the agent to write a TypeScript script that buys a specified amount of a PumpFun token on the bonding curve using @solana/web3.js with slippage protection.

Frequently Asked Questions about pumpfun

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I buy tokens on a PumpFun bonding curve with Solana web3.js?

Derive the bonding curve PDA with seeds ["bonding-curve", mint], build the buy instruction with the amount and maxSolCost for slippage, and include the creator vault, fee program, and fee config accounts. Send the transaction signed by the buyer.

How to create a token on PumpFun using TypeScript?

Use the create instruction for legacy SPL tokens or create_v2 for Token2022 tokens, passing name, symbol, and metadata URI. Generate a mint keypair, derive the bonding curve PDAs, and include the Metaplex metadata account for legacy creates.

What is the difference between PumpFun bonding curve and PumpSwap AMM?

The bonding curve handles initial token launches with virtual reserves and no initial liquidity, while PumpSwap is a constant-product AMM for graduated tokens. When a curve completes, liquidity migrates to PumpSwap and LP tokens are burned.

Why does my PumpFun transaction fail with account data too small?

Bonding curve accounts under 150 bytes and pool accounts under 300 bytes need an extendAccount instruction prepended before trading. Check the account data length and add the extension instruction to the same transaction.

How do I collect creator fees from PumpFun?

For bonding curves, call collect_creator_fee against the creator-vault PDA derived from your address. For PumpSwap pools, use collect_coin_creator_fee with the creator vault authority PDA and its associated quote token account.

Does PumpFun support Token2022 tokens?

Yes, the create_v2 instruction creates Token2022 tokens instead of legacy SPL tokens and supports Mayhem mode. It uses a 14-account structure including the Token2022 program and Mayhem program accounts.