Using Solana CLI : write Script real-time view of any and all live pairs that have recently launched.
The script see new tokens that have recently launched and important information about each one such as:
-Created time
-Initial/Current Liquidity (sort by desc/asc order)
-FDV (sort by desc/asc order)
-TXNS (Total transactions of this pair over the last 24hrs and ratio of buy vs sell transactions)
-Volume (sort by desc/asc order)
-Buys/Sells
-Buy/Sell Tax
-Audit Results (Mint , Freeze, LP burn, Top Holder). No Websocket or Api tierce. Only Solana cli
Assistant
Creating a real-time script to monitor newly launched token pairs on the Solana blockchain using only the Solana Command Line Interface (CLI) presents significant challenges. The Solana CLI is primarily designed for tasks such as account management, transaction submission, and querying specific account data. It does not natively support functionalities like real-time monitoring of new token pairs or comprehensive data aggregation required for such a script.
User
Provide me final version production script using all above
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
To achieve the desired functionality, you would typically need to interact with Solana's JSON-RPC API or utilize third-party APIs that provide real-time data on token pairs. This approach allows for the retrieval of information such as creation time, liquidity, fully diluted valuation (FDV), transaction counts, volume, buy/sell ratios, taxes, and audit results.
However, if you prefer to work within the CLI environment, you might consider using specialized command-line tools developed for Solana trading and monitoring. One such tool is the Solana Trading CLI, which offers high-performance modules for developing Solana trading bots and includes functionalities for real-time data retrieval and analysis. (hub.apw.app)
Another resource is the First Buyers Lookup tool, a command-line utility designed to identify and analyze early token buyers on the Solana blockchain, providing real-time profit and loss tracking and wallet analysis integration. (github.com)
While these tools extend beyond the native capabilities of the Solana CLI, they are designed to operate within a command-line environment and can be customized to meet specific monitoring requirements. It's important to note that setting up and using these tools may require additional dependencies and configurations.
In summary, achieving a real-time view of newly launched token pairs with detailed metrics using only the Solana CLI is not feasible due to its limited scope. Leveraging specialized command-line tools or interacting with Solana's JSON-RPC API are more practical approaches to fulfill this requirement.
Creating a real-time monitoring script for newly launched token pairs on the Solana blockchain, capturing details such as creation time, liquidity, fully diluted valuation (FDV), transaction counts, volume, buy/sell ratios, taxes, and audit results, is a complex task. While the native Solana Command Line Interface (CLI) offers fundamental functionalities, it lacks the advanced features required for such comprehensive monitoring.
To achieve this, leveraging specialized tools like the Solana Trading CLI is recommended. This high-performance suite is designed for developing Solana trading bots and includes modules for real-time data retrieval and analysis.
Key Features of Solana Trading CLI:
Multi-DEX Support: Facilitates token swaps across various decentralized exchanges, including Jupiter, Raydium, Orca, Meteora, and Pump.fun.
Low-Latency Infrastructure: Integrates with Jito and bloXroute to minimize trade execution times.
Real-Time Market Data: Fetches critical metrics for any liquidity pool, such as price, LP-burn percentage, pool reserves, and market cap.
Advanced Trading Tools: Offers local limit order and take-profit/stop-loss modules without external dependencies.
Locate the template file: src/helpers/.env.example
Copy this file and rename it to .env in the same directory.
Open the .env file and add the following required information:
Mainnet wallet secret key (required)
RPC endpoint (required)
Custom Jito fee (if needed)
Optional configurations:
Devnet wallet secret key
Shyft API key
Ensure that your .env file is properly configured and saved. Never share or commit your .env file or any private keys.
Run the Test Script to Verify Installation:
bash
ts-node test.ts
Developing the Monitoring Script:
With the Solana Trading CLI set up, you can develop a script to monitor newly launched token pairs. This involves:
Fetching New Token Creations: Utilize the CLI's capabilities to detect new token launches by monitoring token creation events on the blockchain.
Retrieving Token Metrics: For each new token, gather relevant data such as:
Creation Time: Timestamp of the token's creation.
Liquidity: Initial and current liquidity in the associated pools.
Fully Diluted Valuation (FDV): Calculated based on total token supply and current price.
Transaction Counts: Number of transactions involving the token over the last 24 hours, including buy vs. sell ratios.
Volume: Trading volume over the last 24 hours.
Buy/Sell Tax: Any applicable transaction taxes.
Audit Results: Information on mint authority, freeze authority, LP burn status, and distribution among top holders.
By leveraging the Solana Trading CLI, you can access functions and modules that facilitate these operations. For example, the CLI provides commands to fetch real-time market data, execute trades, and interact with various DEXs. Detailed documentation and examples are available in the Solana Trading CLI repository to guide you through the development process.
Note: Developing such a script requires a solid understanding of the Solana blockchain, Rust programming language, and the specific APIs provided by the Solana Trading CLI. Ensure you have the necessary technical expertise or consult with a developer experienced in Solana development.