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.

F1 1.000
ML Accuracy
< 1ms
Inference Time
175K+
Tokens Trained On
4-Model
Ensemble

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

Free

$0
  • +100 scans/day
  • +Score + risk level + isRug
  • +5-min cache
  • +Community support
Get Free Key

Pro

$199/month
  • +10,000 scans/min
  • +Full breakdown + flags
  • +Honeypot detection
  • +Temporal analysis
  • +Stage prediction
  • +Priority support
Subscribe

Pay As You Go

$49/month
  • +1,000 scans/min
  • +Full breakdown + flags
  • +Same as Pro response
  • +10,000 calls included
  • +Email support
Subscribe
💳

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

POST/api/drainbrain/v1/scan

Scan a single Solana token for rug pull risk

Auth: Bearer API keyBody: { "mint": "TOKEN_ADDRESS" }
POST/api/drainbrain/v1/scan/batch

Scan up to 10 tokens in parallel (Pro/PAYG only)

Auth: Bearer API keyBody: { "mints": ["MINT_1", "MINT_2", ...] }
GET/api/drainbrain/v1/health

Check model availability and API version

Auth: None
POST/api/drainbrain/v1/keys

Generate a free API key

Auth: NoneBody: { "name": "My Bot", "email": "me@example.com" }
GET/api/drainbrain/v1/keys

List all your API keys (with usage stats)

Auth: Bearer API key
POST/api/drainbrain/v1/keys/:id/rotate

Rotate a key (deactivates old, returns new)

Auth: Bearer API key
DELETE/api/drainbrain/v1/keys/:id

Revoke an API key

Auth: Bearer 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/keys

Not 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

CodeMeaning
200Scan completed successfully
400Invalid mint address or malformed request
401Missing or invalid API key
429Rate limit or daily limit exceeded
504Scan timed out (token may have too many txs)
500Internal server error

PROOF

See the accuracy yourself

We publish our accuracy metrics publicly. No other scanner does this.

View Live Accuracy Dashboard

Ready to protect your users?

Free tier. No credit card. Start scanning in 30 seconds.

Get Your API Key