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.