SolGuard-CLI is a command-line tool that analyzes a Solana wallet and provides a risk assessment for the SPL tokens it holds. It uses the rugcheck.xyz API to generate a "rug score" for each token, helping users identify potentially risky assets.
- Fetches all SPL tokens from a given Solana wallet address.
- Provides a risk score and detailed analysis for each token.
- Displays a clear and concise risk report in the terminal.
- Easy-to-use and interactive command-line interface.
The tool consists of a main Python script that orchestrates the process and a Node.js script responsible for fetching token data from the Solana blockchain.
- The user is prompted to enter a Solana wallet address.
- The Python script calls the Node.js script to get a list of all SPL tokens in the wallet.
- For each token, the Python script queries the rugcheck.xyz API to get a detailed risk analysis.
- Finally, a report is generated and displayed in the terminal, showing the risk level for each token.
Before you begin, ensure you have the following installed:
- Python 3.x
- Node.js and npm
- Git
-
Clone the repository:
git clone https://github.com/rickscode/SolGuard-CLI.git cd SolGuard-CLI -
Install the required Python packages:
pip install -r requirements.txt
-
Install the required Node.js packages:
npm install
To run the tool, execute the following command in your terminal:
python app.pyYou will then be prompted to enter your Solana wallet address. The tool will fetch the token data and display the risk report.
This project is licensed under the MIT License. See the LICENSE file for details.
- This tool uses the rugcheck.xyz API for token risk analysis.
- The user interface is enhanced with the Rich library for Python.