Solana meme
Monitor the Solana blockchain for new pump.fun meme coins in real-time using Rust! This tool listens to on-chain events and alerts you whenever a new meme token appears
Monitor the Solana blockchain for new pump.fun meme coins in real-time using Rust! This tool listens to on-chain events and alerts you whenever a new meme token appears, helping you stay ahead in the crypto space. The project is written primarily in Rust, first published in 2024. Key topics include: meme, pump, rust, snipe, solana.
Solana Meme Coin Watcher ๐
Monitor the Solana blockchain for new pump.fun meme coins in real-time using Rust! This tool listens to on-chain events and alerts you whenever a new meme token appears, helping you stay ahead in the crypto space.
๐ Table of Contents
โจ Features
- Real-time Monitoring: Subscribes to the Solana blockchain and listens for specific transaction logs.
- Token Detection: Identifies new tokens associated with a particular owner address.
- Customizable Filters: Easily modify the code to monitor different addresses or token criteria.
- Lightweight and Efficient: Built with asynchronous Rust for high performance.
- Sniper robot: Automatically buys the token when it appears.
๐ Prerequisites
- Rust: Make sure you have Rust installed. If not, download it from rust-lang.org.
- Tokio Runtime: This project uses asynchronous programming, so the Tokio runtime is required.
- Solana Client Libraries: Uses
solana_clientand related crates.
๐ง Installation
-
Clone the Repository
bashgit clone https://github.com/CodeCat-maker/solana_meme cd solana_meme -
Install Dependencies
bashcargo build
๐ Usage
-
Configure API Key
Replace the placeholder API key in the code with your actual API key from Heliusrustlet env = Env { ws_url: Url::parse( "wss://mainnet.helius-rpc.com/?api-key=YOUR_API_KEY", )?, }; ... let rpc_client = rpc_client::RpcClient::new( "https://mainnet.helius-rpc.com/?api-key=Your_API_KEY".to_string(), ); -
Run the Program
bashcargo run -
Monitor Output
The application will begin monitoring and output messages when new tokens are detected.
๐ ๏ธ How It Works
-
Subscription to Logs: The program subscribes to transaction logs on the Solana mainnet where a specific public key is mentioned.
-
Transaction Filtering: It filters transactions to find those that involve the specified owner address and exclude the native SOL token.
-
Token Detection: When a matching transaction is found, it prints out the mint address of the new token.
Key Components
-
PubsubClient: Used for subscribing to the Solana WebSocket for real-time updates.
-
RpcClient: Allows fetching detailed transaction data from the Solana RPC API.
-
Filters and Configs: Customized filters to narrow down the transactions of interest.
๐ Example Output
Start monitoring...
========== New Token Found ==========
Mint Address: 3Kz4n... (truncated for brevity)
=====================================
๐ค Contributing
Contributions are welcome! Please open an issue or submit a pull request for any improvements.
- Fork the repository
- Create your feature branch (git checkout -b feature/YourFeature)
- Commit your changes (git commit -am 'Add YourFeature')
- Push to the branch (git push origin feature/YourFeature)
- Open a pull request
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to reach out if you have any questions or need assistance getting started. Happy monitoring! ๐
Contributors
Showing top 2 contributors by commit count.
