A professional, production-ready TypeScript project that leverages lightning-fast transaction execution capabilities of Jito, BloxRoute, and Nozomi for PumpFun token creation and launch. Designed to achieve sub-1-second token creation performance on both devnet and mainnet.
- β‘ Lightning Fast Performance: Sub-1-second execution through parallel submission
- π§ Multi-Network Support: Devnet and Mainnet configurations
- π― Advanced Execution Strategies: Hybrid, single provider, and fallback modes
- π‘οΈ Enterprise-Grade Reliability: Error handling, retry mechanisms, and monitoring
- π Performance Analytics: Detailed metrics and optimization suggestions
- Hybrid Strategy: Parallel submission to all providers for maximum speed
- Single Provider: Use individual providers (Jito, BloxRoute, or Nozomi)
- Fallback Strategy: Automatic fallback to direct RPC if providers fail
- Smart Routing: Automatic strategy selection based on configuration
- Jito: Bundle transactions with validator tips for atomic execution
- BloxRoute: High-performance RPC endpoints with staked validator connections
- Nozomi: Optimized transaction submission to current block leaders
- Node.js >= 18.0.0
- npm or yarn
- A Solana wallet with sufficient SOL for testing
- Clone and Install Dependencies
git clone <repository-url>
cd lightning-pumpfun-token-creator
npm install- Configure Environment
cp .env.example .env
# Edit .env with your configuration- Build the Project
npm run buildCreate a .env file with the following configuration:
# Network Configuration
NETWORK=devnet # or mainnet
RPC_ENDPOINT=https://api.devnet.solana.com
WS_ENDPOINT=wss://api.devnet.solana.com
# Wallet Configuration (REQUIRED)
PRIVATE_KEY=your_base58_encoded_private_key_here
# Executor Configuration
USE_JITO=true
USE_BLOXROUTE=true
USE_NOZOMI=true
# Provider-Specific Configuration
JITO_TIP_AMOUNT=0.0001
BLOXROUTE_AUTH_HEADER=your_bloxroute_auth_header
BLOXROUTE_FEE=0.001
NOZOMI_API_KEY=your_nozomi_api_key
NOZOMI_TIP_AMOUNT=0.0001
# Performance Configuration
MAX_RETRY_ATTEMPTS=3
CONFIRMATION_TIMEOUT=30000
TRANSACTION_TIMEOUT=10000
# Logging Configuration
LOG_LEVEL=info
ENABLE_PERFORMANCE_LOGGING=true- Wallet Private Key: Base58 encoded Solana wallet private key
- BloxRoute Auth Header: Get from BloxRoute
- Nozomi API Key: Get from Nozomi
# Create a token with default configuration
npm run dev# Run performance tests
npm run testimport { PumpFunTokenCreator, TokenCreationConfig } from 'lightning-pumpfun-creator';
const creator = new PumpFunTokenCreator();
const tokenConfig: TokenCreationConfig = {
metadata: {
name: "My Lightning Token",
symbol: "MLT",
description: "A token created with lightning speed",
website: "https://my-token.com",
twitter: "https://twitter.com/mytoken"
},
initialBuyAmount: 0.1, // 0.1 SOL
slippageBasisPoints: 500, // 5% slippage
priorityFee: 0.001 // 0.001 SOL priority fee
};
const result = await creator.createToken(tokenConfig);
if (result.success) {
console.log(`Token created: ${result.tokenMint?.toBase58()}`);
console.log(`Transaction: ${result.signature}`);
console.log(`Time: ${result.metrics.totalExecutionTime}ms`);
} else {
console.error(`Failed: ${result.error}`);
}The system includes comprehensive performance monitoring:
// Get performance statistics
const stats = creator.getSessionStatistics();
console.log(`Success Rate: ${stats.successRate}%`);
console.log(`Average Time: ${stats.averageExecutionTime}ms`);
// Get optimization suggestions
const optimizations = creator.getPerformanceOptimizations();
optimizations.forEach(suggestion => console.log(suggestion));Monitor system health across all providers:
const health = await creator.getHealthStatus();
console.log('System Health:', health);Estimate token creation costs before execution:
const estimate = await creator.estimateCreationCost(tokenConfig);
console.log(`Estimated Cost: ${estimate.total} SOL`);
console.log('Breakdown:', estimate.breakdown);The system includes comprehensive error handling:
- Network failures: Automatic retry with exponential backoff
- Provider failures: Automatic fallback to alternative providers
- Configuration errors: Detailed validation and error messages
- Transaction failures: Detailed error reporting with suggestions
Based on optimal configuration:
- Execution Time: 300-800ms for token creation
- Success Rate: 95-98% under normal network conditions
- Cost Efficiency: Optimized tip amounts for each provider
- Scalability: Support for high-volume operations
import { TransactionExecutor, ExecutionStrategy } from 'lightning-pumpfun-creator';
const executor = new TransactionExecutor();
// Override strategy selection
const result = await executor.executeOptimal(transaction, signers);import { JitoExecutor, BloxRouteExecutor, NozomiExecutor } from 'lightning-pumpfun-creator';
// Use specific provider
const jitoExecutor = new JitoExecutor();
const result = await jitoExecutor.executeTransaction(transaction, signers);npm run test:unitnpm run test:integrationnpm run test:performancenpm run build- Build the TypeScript projectnpm run start- Run the built projectnpm run dev- Run basic token creation examplenpm run test- Run performance testingnpm run lint- Lint the codebasenpm run format- Format code with Prettier
- Private Key Management: Never commit private keys to version control
- Environment Variables: Use
.envfiles for sensitive configuration - Network Security: All API calls use HTTPS/WSS
- Input Validation: Comprehensive validation of all inputs
-
"Cannot connect to Solana network"
- Check your RPC endpoint
- Verify network connectivity
- Try alternative RPC providers
-
"Private key validation failed"
- Ensure private key is base58 encoded
- Verify the wallet has sufficient SOL balance
-
"All executors failed"
- Check provider API keys and credentials
- Verify network configuration
- Check provider status pages
Enable debug logging:
LOG_LEVEL=debug npm run dev- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Solana Labs for the Solana blockchain
- Jito Labs for MEV infrastructure
- BloxRoute for trading infrastructure
- Nozomi for transaction optimization
- PumpFun for the token launch platform
- Documentation: docs.lightning-pumpfun.dev
- Issues: GitHub Issues
- Discord: Community Server
β‘ Built for lightning-fast token creation on Solana β‘