Welcome to the Volume Bot for Pump Fun! This bot automates generating buy and sell volumes of tokens on the Solana blockchain, allowing you to capitalize on market movements. Below, you'll find a detailed guide on how to set up and use the bot.
- Node.js (v14 or later)
- NPM (Node Package Manager)
- A Telegram account
- Solana wallet with some SOL balance
-
Clone the repository:
git clone https://github.com/MaliosDark/Volume-Bot-PumpFun-Telegram.git cd Volume-Bot-PumpFun-Telegram
-
Install dependencies:
npm install
-
Set your private key: Open the
index.js
file and replace the emptyPRIVKEY
array with your private key inUint8Array
format. -
Set the token address: Replace the placeholder
ADD_TOKEN_ADDRESS_TO_BUY_SELL
with the actual token address you want to swap. -
Set the Telegram bot token: Replace the placeholder
ADD_TELEGRAM_TOKEN_HERE
with your Telegram bot token. -
Adjust the settings (optional): You can adjust the buy amount, fees, slippage, number of cycles, max simultaneous buys/sells, and intervals between actions directly in the
index.js
file.
-
Start the bot:
node index.js
-
Interact with the bot via Telegram: Use the provided commands to start/stop cycles, check status, configure settings, etc.
- /start: Show the main menu.
- Main Menu Options:
- 🔄 Start Buy/Sell Cycles: Begin the buy/sell cycles.
- 🛑 Stop Cycles: Stop the current buy/sell cycles.
- 📊 Status: Show the current status of the bot.
- ⚙️ Settings: Access the settings menu to configure the bot.
- 📜 Show Wallet: Display the wallet address.
- ❓ Help: Display help information.
Performs a token swap on the Solana blockchain.
async function swap(tokenIn, tokenOut, solanaTracker, keypair, connection, amount, chatId)
- tokenIn: Address of the token to swap from.
- tokenOut: Address of the token to swap to.
- solanaTracker: Instance of the SolanaTracker.
- keypair: User's keypair for signing transactions.
- connection: Solana connection object.
- amount: Amount of tokenIn to swap.
- chatId: Telegram chat ID to send messages.
Fetches the token balance of the user's wallet.
async function getTokenBalance(connection, owner, tokenAddr)
- connection: Solana connection object.
- owner: Public key of the wallet owner.
- tokenAddr: Address of the token to check balance.
Handles the buy and sell cycles.
async function executeCycles(chatId)
- chatId: Telegram chat ID to send messages.
Displays the main menu in Telegram.
function showMainMenu(chatId)
- chatId: Telegram chat ID to send messages.
Displays the settings menu in Telegram.
function showSettingsMenu(chatId)
- chatId: Telegram chat ID to send messages.
Handles various actions based on user interaction with the bot.
bot.on('callback_query', async (callbackQuery) => {
const chatId = callbackQuery.message.chat.id;
const action = callbackQuery.data;
// Logic for handling different actions...
});
Each function includes error handling to ensure smooth operation and proper messaging in case of issues.
This bot automates the process of buying and selling tokens on the Solana blockchain using specified parameters and cycles. It integrates with Telegram to provide a user-friendly interface for monitoring and configuring the bot.
Enjoy your trading! 🚀📈
Feel free to customize and extend the bot according to your needs. If you have any questions or need further assistance, don't hesitate to contact @wherklow on Telegram.