ecosystem: add RugGuard — pre-trade rug-check API for AI agents#161
ecosystem: add RugGuard — pre-trade rug-check API for AI agents#161dbe006 wants to merge 1 commit into
Conversation
Pre-trade rug-check API for AI agents on Base & Solana, settled in USDC via x402. 14 deterministic heuristics on Base + 5 on Solana.
🟡 Heimdall Review Status
|
|
Ran a no-payment external pass against the public RugGuard OpenAPI. No Repro: npx --yes x402-surface-check@latest https://rugguard.redfleet.fr/openapi.json --limit 8 --origin https://rugguard.redfleet.frWhat looks good:
Patch notes before/after merge:
If this is intended to be server-to-server only, documenting that scope would resolve the CORS items. Otherwise I would add OPTIONS handling plus CORS headers to both preflight and actual 402 responses before relying on browser agents. |
|
Thanks @TateLyman for the careful pass! All three blockers are deployed and live now. P1.1: CORS on 402. Custom exception handler now attaches P1.2: OPTIONS preflight. Mounted P1/P2: batch 422 → 402. Registered a Live verification: $ curl -i -X OPTIONS -H "Origin: https://example" -H "Access-Control-Request-Method: GET" -H "Access-Control-Request-Headers: x-payment" https://rugguard.redfleet.fr/v1/scan/base/0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed $ curl -i -H "Origin: https://example" https://rugguard.redfleet.fr/v1/scan/base/0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed $ curl -i -X POST -H "Content-Type: application/json" -d '[]' https://rugguard.redfleet.fr/v1/scan/batch 6 new regression tests pin the contracts (CORS on paid endpoints, OPTIONS preflight, 402 includes Access-Control-Expose-Headers, empty and malformed bodies on batch return 402 not 422). 397/397 unit tests pass. Server-to-server was the initial target audience, but the CORS fix is the right call regardless. Any in-browser x402 client (web-based agent UIs, browser extensions, SSE-transport MCP) was locked out before this. Thanks again for the careful probe. |
Summary
Adds RugGuard to the ecosystem under "Services/Endpoints".
RugGuard is a pre-trade rug-check API for AI agents. Given a token contract on Base or Solana, it returns a weighted risk score 0–100, a verdict, and structured red flags (owner renounced, LP locked, honeypot signatures, top10 concentration, mint authority, bytecode similarity to known rugs, deployer rug history, etc.).
88f6ecef-5668-4def-90a3-6984865f0e06Files added
typescript/site/app/ecosystem/partners-data/rugguard/metadata.jsontypescript/site/public/logos/rugguard.png(512×512, 95 KB)No existing files modified.