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.
- 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.
- 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_client
and related crates.
-
Clone the Repository
git clone https://github.com/CodeCat-maker/solana_meme cd solana_meme
-
Install Dependencies
cargo build
-
Configure API Key Replace the placeholder API key in the code with your actual API key from Helius
let 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
cargo run
-
Monitor Output
The application will begin monitoring and output messages when new tokens are detected.
-
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.
-
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.
Start monitoring...
========== New Token Found ==========
Mint Address: 3Kz4n... (truncated for brevity)
=====================================
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
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! 🎉