How do I add a rug-pull check to my Solana trading bot?
Call the token safety endpoint with the mint address before your bot buys, and skip any token that fails your own rules. Send GET /api/v1/token/:mint/safety with an X-API-Key header. The free plan allows 1,000 calls per 30 days as a hard cap. Treat the result as one filter, not a guarantee.
How to check it, step by step
- Get an API key. Create a key at /dashboard/signup. The free plan has 1,000 calls per 30 days, and plans and limits are listed in /api-docs.
- Call the endpoint. Send GET /api/v1/token/:mint/safety with the mint and your key in the X-API-Key header. The response covers risk score, honeypot, liquidity lock, authorities and holder concentration.
- Write your own rules. Decide which fields block a trade, for example an active mint authority or a score above your limit. Keep the thresholds in your config so you can change them.
- Handle failures safely. If the call errors, times out or hits the quota, make the bot skip the trade rather than proceed. Missing data is unknown, not safe.
- Log and verify. Store the checked time with each decision and spot check mints on a block explorer. Reports can be cached, so a very new change may not show yet.
FAQ
What happens when I hit the monthly limit?
On the free plan the cap is hard, so further calls are refused until the 30-day period resets. Check your remaining calls through the usage endpoint or the rate limit headers in each response.
Can I use the MCP server for a bot instead?
The MCP server is built for AI agents. For a conventional bot, the REST API is usually the simpler fit. Both return safety data based on RugCheck analysis of on-chain data.
Will the check stop all rug pulls?
No. It only screens for visible red flags in on-chain data at one moment. It cannot predict later changes to a token, and the output is informational, not financial advice.
Informational only. Automated analysis of public on-chain data from third-party sources; it can be incomplete, delayed or wrong. Not financial, investment or legal advice, and a low risk score does not mean a token is safe.
Related answers
Ask an AI assistant instead: connect the MemePump MCP server. Markdown: add-token-safety-check-to-a-trading-bot.md
Check the next token before you buy it
Free web checker, Telegram bot verdicts in chat, and the same signals as JSON for your trading bot.
Check a token free API docs & pricing