https://github.com/enlomy/pumpfun-bundler
pumpfun bundler: pumpfun bundler is a bundler on pumpfun
https://github.com/enlomy/pumpfun-bundler
bundler fun pump pump-fun pumpfun
Last synced: 4 months ago
JSON representation
pumpfun bundler: pumpfun bundler is a bundler on pumpfun
- Host: GitHub
- URL: https://github.com/enlomy/pumpfun-bundler
- Owner: enlomy
- Created: 2024-11-27T13:07:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-28T10:04:01.000Z (about 1 year ago)
- Last Synced: 2025-06-21T20:04:12.776Z (12 months ago)
- Topics: bundler, fun, pump, pump-fun, pumpfun
- Language: TypeScript
- Homepage:
- Size: 71.3 KB
- Stars: 23
- Watchers: 3
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pump.fun Bundler
A sophisticated Solana token bundler designed to create and launch tokens on pump.fun with advanced features including multi-wallet bundling, vanity address generation, and Jito MEV protection.
## π Features
- **Multi-Wallet Bundling**: Distributes SOL across multiple wallets and executes coordinated token purchases
- **Vanity Address Generation**: Generate custom token addresses with specific suffixes (e.g., ending with "pump")
- **Jito MEV Protection**: Uses Jito bundles for MEV protection and transaction ordering
- **Address Lookup Tables (LUT)**: Optimizes transaction size and reduces fees
- **Flexible Configuration**: Support for both multi-wallet and single-wallet bundling modes
- **Automatic Retry Logic**: Built-in retry mechanisms for RPC and Jito failures
- **Token Metadata**: Full support for token metadata including images, descriptions, and social links
## π Prerequisites
- Node.js (v16 or higher)
- npm or yarn
- Solana CLI (optional, for advanced users)
- Sufficient SOL balance for:
- Token creation fees
- Distribution to bundler wallets
- Jito tips
- Transaction fees
## π οΈ Installation
1. Clone the repository:
```bash
git clone
cd pump.fun-bundler
```
2. Install dependencies:
```bash
npm install
# or
yarn install
```
3. Create a `.env` file in the root directory with the following variables:
```env
# Required Configuration
PRIVATE_KEY=your_main_wallet_private_key_in_base58
RPC_ENDPOINT=https://your-solana-rpc-endpoint
RPC_WEBSOCKET_ENDPOINT=wss://your-solana-websocket-endpoint
# Token Configuration
TOKEN_NAME=Your Token Name
TOKEN_SYMBOL=SYMBOL
TOKEN_SHOW_NAME=Display Name
DESCRIPTION=Your token description
TOKEN_CREATE_ON=Launch Date
TWITTER=https://twitter.com/yourhandle
TELEGRAM=https://t.me/yourchannel
WEBSITE=https://yourwebsite.com
FILE=./image/your_token_image.jpg
# Bundling Configuration
SWAP_AMOUNT=0.1
DISTRIBUTION_WALLETNUM=10
JITO_FEE=0.001
VANITY_MODE=false
# Single Wallet Mode (for oneWalletBundle.ts)
BUYER_WALLET=buyer_wallet_private_key_in_base58
BUYER_AMOUNT=0.5
```
## π― Usage
### Multi-Wallet Bundling (Recommended)
Run the main bundler script:
```bash
npm start
```
This will:
1. Generate or use a vanity address (if enabled)
2. Create the token with metadata
3. Distribute SOL to multiple wallets
4. Create and populate an Address Lookup Table
5. Execute coordinated buy transactions via Jito bundles
### Single Wallet Mode
For simpler operations with a single buyer wallet:
```bash
npm run single
```
### Additional Scripts
- **Close LUT**: `npm run close` - Closes the Address Lookup Table
- **Gather Funds**: `npm run gather` - Collects funds from bundler wallets
- **Check Status**: `npm run status` - Checks the status of transactions
## βοΈ Configuration Options
### Token Settings
- `TOKEN_NAME`: The official name of your token
- `TOKEN_SYMBOL`: Token symbol (usually 3-5 characters)
- `TOKEN_SHOW_NAME`: Display name shown in wallets
- `DESCRIPTION`: Token description
- `FILE`: Path to token image (supports JPG, PNG)
- Social links: Twitter, Telegram, Website
### Bundling Settings
- `SWAP_AMOUNT`: SOL amount per wallet for purchasing (in SOL)
- `DISTRIBUTION_WALLETNUM`: Number of wallets to create and use
- `JITO_FEE`: Jito tip amount (in SOL)
- `VANITY_MODE`: Enable/disable vanity address generation
### RPC Configuration
- Use high-performance RPC endpoints for better success rates
- Recommended providers: Helius, QuickNode, Alchemy
- Ensure WebSocket support for real-time updates
## π§ Technical Details
### Architecture
- **Token Creation**: Uses pump.fun SDK for token deployment
- **Wallet Distribution**: Creates multiple keypairs and distributes SOL
- **LUT Management**: Optimizes transaction size using Address Lookup Tables
- **Jito Integration**: Sends bundles to multiple Jito endpoints for redundancy
- **Retry Logic**: Automatic retries for failed operations
### Transaction Flow
1. Token creation transaction
2. SOL distribution to bundler wallets
3. LUT creation and population
4. Coordinated buy transactions in bundles
5. Jito bundle submission
## π¨ Troubleshooting
### Common Issues
#### RPC Errors
```
Error: RPC endpoint failed
```
**Solutions:**
- Use a premium RPC provider with higher rate limits
- Implement RPC endpoint rotation
- Check network connectivity
- Reduce concurrent requests
#### Jito Failures
```
Error: Jito bundle submission failed
```
**Solutions:**
- Increase Jito tip amount
- Try different Jito endpoints
- Reduce bundle size
- Check transaction simulation results
#### Insufficient Balance
```
Error: Main wallet balance is not enough
```
**Solutions:**
- Calculate required SOL: `(SWAP_AMOUNT + 0.01) * DISTRIBUTION_WALLETNUM + 0.04`
- Add more SOL to your main wallet
- Reduce `DISTRIBUTION_WALLETNUM` or `SWAP_AMOUNT`
#### Transaction Simulation Failures
**Solutions:**
- Reduce compute unit limits
- Optimize transaction size
- Check token metadata validity
- Verify wallet permissions
### Performance Optimization
1. **RPC Optimization**:
- Use dedicated RPC endpoints
- Implement connection pooling
- Monitor rate limits
2. **Transaction Optimization**:
- Use Address Lookup Tables effectively
- Optimize compute unit allocation
- Batch operations when possible
3. **Jito Optimization**:
- Use appropriate tip amounts
- Submit to multiple endpoints
- Monitor bundle success rates
## π Project Structure
```
βββ constants/ # Configuration constants
βββ executor/ # Transaction execution logic
β βββ jito.ts # Jito bundle execution
β βββ legacy.ts # Legacy transaction execution
βββ keys/ # Generated wallet keys and data
βββ src/ # Core functionality
β βββ main.ts # Main bundling logic
β βββ metadata.ts # Token metadata handling
β βββ uploadToIpfs.ts # IPFS upload functionality
β βββ vanity.ts # Vanity address generation
βββ utils/ # Utility functions
βββ image/ # Token images
βββ index.ts # Main entry point
βββ oneWalletBundle.ts # Single wallet mode
βββ package.json # Dependencies and scripts
```
## π Security Considerations
- **Private Keys**: Store private keys securely and never commit them to version control
- **RPC Endpoints**: Use trusted RPC providers to prevent data interception
- **Environment Variables**: Use `.env` files and ensure they're in `.gitignore`
- **Wallet Management**: Consider using hardware wallets for main operations
## π Monitoring and Analytics
The bundler provides detailed logging for:
- Transaction signatures and confirmations
- Wallet creation and distribution
- LUT creation and population
- Jito bundle submissions
- Error tracking and retry attempts
## π€ Contributing
1. Fork the repository
2. Create a feature branch
3. Make your changes
4. Add tests if applicable
5. Submit a pull request
## β οΈ Disclaimer
This software is for educational and research purposes. Users are responsible for:
- Compliance with local regulations
- Proper tax reporting
- Understanding the risks of cryptocurrency trading
- Securing their private keys and funds
## π License
ISC License - see LICENSE file for details
## π Support
For issues and questions:
1. Check the troubleshooting section
2. Review the logs for specific error messages
3. Ensure all environment variables are properly set
4. Verify sufficient SOL balance and RPC connectivity
---
**Note**: This bundler is designed for pump.fun token launches. Always test with small amounts first and understand the risks involved in cryptocurrency operations.
## π΅ Tip
### If you are intereseted in my projects, please πfork or give me βstar