The Pumpfun Bundler is the fastest, most efficient self-bundling script for PumpFun, enabling you to create a token and execute purchases with 25 buyers in a single bundle. Perfect for streamlined launches and trading efficiency!
- 🪙 Create Tokens Instantly: Launch your custom token with ease.
- 🤝 25 Buyers in One Bundle: Simultaneously manage multiple purchases.
- ⚡ Fast and Reliable: Designed for speed and transaction accuracy.
- 🔍 Transparent Tracking: Validate transactions directly on Solscan.
Install the PumpFun SDK with a single command:
npm i pumpdotfun-sdk
1️⃣ Create a .env
file using .env.example
as a reference.
2️⃣ Add your RPC URL to the .env
file.
💸 Fund Alert: Ensure the account generated in the next step has at least 0.004 SOL.
Edit the metadata to define your token's properties:
const metadata = {
"name": "Alie",
"symbol": "AAA",
"description": "Alie token",
"image": "./upload/img.jpg",
"showName": true,
"createdOn": "https://pump.fun",
"twitter": "https://x.com/alie",
"telegram": "https://t.me/alie",
"website": "https://alie"
};
🚀 Execute the script to launch your token and perform bundling:
npx ts-node example/basic/index.ts
🔗 Use these tools to check your token launch and bundling status:
💡 Purpose: Creates a token and buys it.
📜 Method Signature:
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>
- Parameters:
- 🔑
creator
: Creator's keypair. - 🔑
mint
: Mint account keypair. - 📝
createTokenMetadata
: Metadata for the token. - 💰
buyAmountSol
: Amount of SOL to buy. - 📉
slippageBasisPoints
: Slippage (default: 500).
- 🔑
💡 Purpose: Buy a specified amount of tokens.
📜 Method Signature:
async buy(
buyer: Keypair,
mint: PublicKey,
buyAmountSol: bigint,
slippageBasisPoints: bigint = 500n,
priorityFees?: PriorityFee,
commitment: Commitment = DEFAULT_COMMITMENT,
finality: Finality = DEFAULT_FINALITY
): Promise<TransactionResult>
💡 Purpose: Sell a specified amount of tokens.
📜 Method Signature:
async sell(
seller: Keypair,
mint: PublicKey,
sellTokenAmount: bigint,
slippageBasisPoints: bigint = 500n,
priorityFees?: PriorityFee,
commitment: Commitment = DEFAULT_COMMITMENT,
finality: Finality = DEFAULT_FINALITY
): Promise<TransactionResult>
Easily set up event listeners to monitor your token's lifecycle:
sdk.addEventListener("tradeEvent", (event, slot, signature) => {
console.log("Trade Event:", event, slot, signature);
});
npx ts-node example/events/events.ts
We welcome contributions! 💡 Submit a pull request or open an issue to share your ideas.
🌐 Start your Pumpfun Bundler journey now!
🔗 If you need help, contact me on telegram @g0rlc to explore more.