Here’s an example of a beautiful and visually appealing README for your GitHub repository, incorporating emojis and detailed explanations:
A real-time Solana transaction sniper bot that listens to the blockchain for token creation events (specifically for pump.fun
tokens) and logs relevant transaction details like creator and token account information. Perfect for tracking new token launches and reacting quickly to opportunities! 🏃♂️💨
- Real-time Monitoring: Listens for token creation transactions on the Solana network.
- WebSocket Integration: Uses
wss://atlas-mainnet.helius-rpc.com
for fast and reliable data streaming. - Transaction Filtering: Filters transactions based on specific logs related to
pump.fun
tokens. - Ping Mechanism: Keeps the WebSocket connection alive with regular pings.
- Detailed Logs: Provides insights into the creator and token account addresses when a new token is detected.
- WebSocket Connection: The bot connects to a Solana WebSocket endpoint to listen for incoming transactions.
- Transaction Subscription: Subscribes to transactions involving a specific program ID (
pump.fun
token program). - Event Detection: When a transaction is detected, the bot checks if the logs contain the specific keyword
InitializeMint2
(token creation event). - Details Extraction: Extracts the transaction signature, creator, and token account details.
- Logging: The bot outputs the relevant information in the console for easy tracking.
- Node.js (v16+)
- TypeScript
- Solana CLI (for debugging and testing, optional)
-
Clone the repository:
git clone https://github.com/yourusername/pumpfun-sniper-bot.git
-
Install dependencies:
cd pumpfun-sniper-bot npm install
-
Run the bot:
npm run start
Once the bot is running, it will start listening for relevant transactions on the Solana network. When a pump.fun
token is detected, it will log the transaction details to the console:
New pump.fun token!
Tx: [Signature]
Creator: [Creator Account]
Token: [Token Account]
You can modify the WebSocket URL and the program ID in the src/index.ts
file if you want to use a different Solana endpoint or monitor other programs.
Feel free to fork the repository and submit pull requests. We welcome contributions to improve the bot’s functionality and performance!
If you need help, feel free to open an issue or contact me directly on Telegram @g0drlc.
Stay up-to-date on the latest developments in the crypto space:
- Telegram: @g0drlc