RugCheck
The RugCheck tool, part of AgentiPy, is used to fetch information about Solana tokens from the RugCheck.xyz API (https://api.rugcheck.xyz/v1). It provides various endpoints to get token reports (summary and detailed), domain information, leaderboards, new/trending tokens, and LP locker details. This data can help assess the potential risks and community standing of a token.
Functionality
This tool is implemented in the RugCheckManager class.
Key Features:
Initializes with an optional API key for authenticated requests.
Provides methods to fetch:
Token Reports:
fetch_token_report_summary(mint: str)andfetch_token_detailed_report(mint: str)returnTokenCheckobjects with risk assessments and details.Domain Information:
fetch_all_domains(),fetch_domains_csv(),lookup_domain(domain_id: str),fetch_domain_records(domain_id: str).Leaderboards & Stats:
fetch_leaderboard(),fetch_new_tokens(),fetch_most_viewed_tokens(),fetch_trending_tokens(),fetch_recently_verified_tokens(). These return lists of tokens or statistics.LP Lockers:
fetch_token_lp_lockers(token_id: str)andfetch_token_flux_lp_lockers(token_id: str)returnTokenLockersdata.Token Votes:
fetch_token_votes(mint: str).
Uses
aiohttpfor asynchronous API requests.Handles API key authentication if provided.
The TokenCheck type likely includes fields such as risk scores, social information, market data, holder analysis, and contract details. TokenLockers would detail liquidity locks.
Note: This tool relies on the external RugCheck.xyz API. The availability of data, rate limits, and the need for an API key are determined by RugCheck.xyz. The information provided by RugCheck is for informational purposes and should not be considered financial advice.
Source Code
You can find the source code for this tool on GitHub: https://github.com/niceberginc/agentipy/blob/main/agentipy/tools/rugcheck.py
Last updated
