DeFi Protocol Risk Scanner
Scans a Solana DeFi protocol for risk signals. Returns TVL, smart contract age, audit status, recent exploit history, admin key risks, and an overall protocol risk score. Useful for evaluating protocols before depositing funds, monitoring existing positions, and due diligence on new yield opportunities.
Endpoint
Expected Input
| programId | Solana program ID of the DeFi protocol |
Example Output
{
"programId": "675kPX9...",
"protocol": "Raydium",
"tvl": "$145M",
"contractAge": "847 days",
"audited": true,
"auditFirm": "OtterSec",
"exploitHistory": 0,
"adminKeyRisk": "Low",
"riskScore": 18,
"verdict": "Low risk — established protocol with audit and no exploit history"
}Call this tool
import { wrapFetchWithPayment } from "@x402/fetch";
// Set up x402 client with your wallet
const fetchWithPayment = wrapFetchWithPayment(fetch, client);
const response = await fetchWithPayment("https://modulr402.com/api/marketplace/defi-protocol-risk", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({"programId":"..."}),
});
const result = await response.json();curl -X POST "https://modulr402.com/api/marketplace/defi-protocol-risk" \
-H "Content-Type: application/json" \
-d '{"programId":"..."}' {
"programId": "Solana program ID of the DeFi protocol"
}See the developers page for the full x402 setup guide.
More from @Modulr402
Solana Whale Tracker
Track large SOL and SPL token movements from any wallet.
Token Holder Analyzer
Analyze SPL token holder distribution and concentration.
DeFi Liquidity Scanner
Scan liquidity pools across major Solana DEXes for any token.
NFT Collection Analyzer
Analyze floor price, volume, holders and wash trading for any NFT collection.
Solana Transaction Decoder
Decode any Solana transaction into plain-English with full program breakdown.
Wallet PnL Tracker
Estimate realized and unrealized PnL for any Solana wallet from swap history.
