DRAINBRAIN API
Rug Pull Detection
as a Service
Protect your users and agents with the same 4-model ML ensemble that powers RugSlayer. One API call, sub-second response, battle-tested on 175K+ labeled tokens. Built for trading bots, AI agents, and autonomous systems.
QUICK START
Scan a token in 3 lines
curl -X POST https://rugslayer.com/api/drainbrain/v1/scan \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"mint": "TOKEN_MINT_ADDRESS"}'GET YOUR KEY
Free API key - instant access
PRICING
Simple, usage-based pricing
Pro
- +10,000 scans/min
- +Full breakdown + flags
- +Honeypot detection
- +Temporal analysis
- +Stage prediction
- +Priority support
Pay As You Go
- +1,000 scans/min
- +Full breakdown + flags
- +Same as Pro response
- +10,000 calls included
- +Email support
Pay with Stripe (card) or USDC on Solana - same price, no processing fees with crypto. Choose your payment method on the pricing page.
RESPONSE FORMAT
What you get back
FREE TIER RESPONSE
{
"mint": "So11111111111111111111111111111112",
"score": 23,
"riskLevel": "LOW",
"isRug": false,
"cached": false,
"timestamp": "2026-02-18T15:30:00.000Z"
}PRO / PAYG RESPONSE (adds)
{
...free fields...,
"rugStage": 3,
"rugStageName": "Promotion",
"honeypot": { "isHoneypot": false, "reason": null },
"confidence": 0.97,
"inferenceMs": 0.06,
"breakdown": {
"authority": 15,
"liquidity": 30,
"holders": 20,
"behavior": 25,
"wallet": 10
},
"riskFlags": ["MINT_AUTHORITY_ENABLED", "LP_NOT_LOCKED"],
"temporalScore": 85,
"temporalStage": 3,
"estimatedPullHours": 2.5,
"responseTimeMs": 1842
}ENDPOINTS
API reference
/api/drainbrain/v1/scanScan a single Solana token for rug pull risk
{ "mint": "TOKEN_ADDRESS" }/api/drainbrain/v1/scan/batchScan up to 10 tokens in parallel (Pro/PAYG only)
{ "mints": ["MINT_1", "MINT_2", ...] }/api/drainbrain/v1/healthCheck model availability and API version
/api/drainbrain/v1/keysGenerate a free API key
{ "name": "My Bot", "email": "me@example.com" }/api/drainbrain/v1/keysList all your API keys (with usage stats)
/api/drainbrain/v1/keys/:id/rotateRotate a key (deactivates old, returns new)
/api/drainbrain/v1/keys/:idRevoke an API key
BUILT FOR AGENTS
Autonomous trading bots welcome
DrainBrain is designed for machine-to-machine use. Trading bots, AI agents, and autonomous systems can integrate in minutes. Batch scan your whole portfolio in a single call with the batch endpoint.
// Batch scan - check 10 tokens in parallel (Pro/PAYG)
POST /api/drainbrain/v1/scan/batch
{
"mints": ["MINT_1", "MINT_2", "MINT_3", ...]
}
// Response:
{
"results": [
{ "mint": "MINT_1", "score": 23, "riskLevel": "LOW", "isRug": false, ... },
{ "mint": "MINT_2", "score": 91, "riskLevel": "CRITICAL", "isRug": true, ... }
],
"errors": [],
"totalMs": 3200,
"count": 2
}
// Key management - rotate keys programmatically
POST /api/drainbrain/v1/keys/:id/rotate
// Returns new key, old key deactivated instantly
// List all your keys + usage stats
GET /api/drainbrain/v1/keysNot building a bot? Install the Chrome extension for automatic pre-swap warnings on Jupiter, Raydium, Pump.fun, and 8 more DEXs.
Trading Bots
Pre-scan every token before buying. Reject rugs before committing capital. Sub-second latency.
AI Agents
Autonomous agents can generate keys, scan tokens, and manage their own API lifecycle programmatically.
Portfolio Scanners
Batch-scan all holdings in one call. Know which tokens are safe and which to dump. 10 tokens per request.
ERROR CODES
HTTP status codes
| Code | Meaning |
|---|---|
| 200 | Scan completed successfully |
| 400 | Invalid mint address or malformed request |
| 401 | Missing or invalid API key |
| 429 | Rate limit or daily limit exceeded |
| 504 | Scan timed out (token may have too many txs) |
| 500 | Internal server error |
PROOF
See the accuracy yourself
We publish our accuracy metrics publicly. No other scanner does this.
View Live Accuracy DashboardReady to protect your users?
Free tier. No credit card. Start scanning in 30 seconds.
Get Your API Key