An efficient self-bundling script for creating and buying tokens with 20 different wallets in one single bundle on the PumpFun protocol.
The PumpFun Bundler is a fast, efficient tool for creating tokens and buying them using up to 20 different wallets in one bundled transaction. This script simplifies the process of managing multiple wallets and tokens while ensuring a smooth and seamless token creation and purchase experience on the PumpFun platform.
The PumpFun Bundler allows you to create tokens and buy them across multiple wallets using a single bundled transaction. It's designed to be the best, fastest, and most efficient way to launch tokens on the PumpFun site.
To install the PumpFun Bundler SDK, run the following npm command:
npm i pumpdotfun-sdk-
Create a
.envfile and add your RPC URL (refer to.env.examplefor the format). -
Fund an account with at least 0.004 SOL (which will be generated when you run the command below).
You can customize the metadata for your token as desired. Here's an example:
const metadata = {
name: "SolTrendingToken",
symbol: "STT",
description: "Solana Trending Token",
image: "./upload/img.jpg",
showName: true,
createdOn: "https://pump.fun",
twitter: "https://x.com/soltrendev",
telegram: "https://t.me/soltrendev",
website: "https://soltrendev"
}Run the following command to launch your token and perform bundling:
npx ts-node example/basic/index.tsYou can check your token launch and bundling:
- PumpFun Site: View Token Launch
- Solscan:

The PumpDotFunSDK class provides methods to interact with the PumpFun protocol. Below are the method signatures and their descriptions.
async createAndBuy(
creator: Keypair,
mint: Keypair,
createTokenMetadata: CreateTokenMetadata,
buyAmountSol: bigint,
slippageBasisPoints: bigint = 500n,
priorityFees?: PriorityFee,
commitment: Commitment = DEFAULT_COMMITMENT,
finality: Finality = DEFAULT_FINALITY
): Promise<TransactionResult>- Creates a new token and buys it.
- Parameters:
creator: The keypair of the token creator.mint: The keypair of the mint account.createTokenMetadata: Metadata for the token.buyAmountSol: Amount of SOL to buy.slippageBasisPoints: Slippage in basis points (default: 500).priorityFees: Optional priority fees.commitment: Commitment level (default:DEFAULT_COMMITMENT).finality: Finality level (default:DEFAULT_FINALITY).
- Returns: A promise that resolves to a
TransactionResult.
To run the basic example for creating, buying, and selling tokens, use:
npx ts-node example/basic/index.tsWe welcome contributions to this project! If you have any ideas, improvements, or fixes, please feel free to submit a Pull Request or open an Issue.
Now you can create and buy tokens with 20 wallets in a single bundle. This new version further improves efficiency and simplifies the process for users managing multiple wallets.
- Example:
View Example Transaction