https://github.com/toptrendev/pumpfun-bundler
PumpFun Bundler, create/buy token in single bundle for Pumpfun on Solana Network
https://github.com/toptrendev/pumpfun-bundler
bot bundler buy pool pump pumpfun pumpfun-bot pumpfun-bundler pumpfun-tool solana solana-bundle
Last synced: 28 days ago
JSON representation
PumpFun Bundler, create/buy token in single bundle for Pumpfun on Solana Network
- Host: GitHub
- URL: https://github.com/toptrendev/pumpfun-bundler
- Owner: TopTrenDev
- License: mit
- Created: 2025-02-17T20:03:18.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-02-18T10:45:39.000Z (10 months ago)
- Last Synced: 2025-02-18T11:36:14.452Z (10 months ago)
- Topics: bot, bundler, buy, pool, pump, pumpfun, pumpfun-bot, pumpfun-bundler, pumpfun-tool, solana, solana-bundle
- Language: TypeScript
- Homepage: https://pump.fun
- Size: 5.03 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# **PumpFun Bundler**
**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**.
---
## **📌 Overview**
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**.
---
## **⚙️ Installation**
To install the PumpFun Bundler SDK, run the following npm command:
```bash
npm i pumpdotfun-sdk
```
---
## **🛠️ Usage Example**
### Step 1: Set up your environment
1. Create a `.env` file and add your RPC URL (refer to `.env.example` for the format).
2. Fund an account with at least **0.004 SOL** (which will be generated when you run the command below).
### Step 2: Edit Token Metadata
You can customize the metadata for your token as desired. Here's an example:
```typescript
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"
}
```
### Step 3: Run the Token Launch
Run the following command to launch your token and perform bundling:
```bash
npx ts-node example/basic/index.ts
```
You can check your token launch and bundling:
- **PumpFun Site**: [View Token Launch](https://pump.fun/2q4JLenwD1cRhzSLu3uPMQPw4fTEYp7bLtfmBwFLb48v)
- **Solscan**: 
---
## **💻 PumpDotFunSDK Class**
The `PumpDotFunSDK` class provides methods to interact with the **PumpFun** protocol. Below are the method signatures and their descriptions.
### **`createAndBuy` Method**
```typescript
async createAndBuy(
creator: Keypair,
mint: Keypair,
createTokenMetadata: CreateTokenMetadata,
buyAmountSol: bigint,
slippageBasisPoints: bigint = 500n,
priorityFees?: PriorityFee,
commitment: Commitment = DEFAULT_COMMITMENT,
finality: Finality = DEFAULT_FINALITY
): Promise
```
- **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`.
---
## **🚀 Running the Examples**
### **Basic Example**
To run the basic example for creating, buying, and selling tokens, use:
```bash
npx ts-node example/basic/index.ts
```
---
## **💡 Contributing**
We 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**.
---
## **📄 License**
This project is licensed under the **MIT License**. For more details, see the [LICENSE](LICENSE) file.
---
## **🔥 PumpFun Bundler V2**
### **Introducing PumpFun Bundler Version 2**
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](https://explorer.jito.wtf/bundle/28d842bef7c919cee00798cee05bb15616bdf96574a8428a27b81c71252342e0)
---
## **📬 Contact & Community**
📢 **Telegram:** [@toptrendev](https://t.me/toptrendev)
📢 **Discord:** [toptrendev](https://discordapp.com/users/334173411402317846)