Back to Marketplace
Modulr Official
x402 Ready

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.

$0.30 USDC per call@Modulr402Last tested 2026-06-05
solanadefiprotocolsecuritytvlaudit

Endpoint

POSThttps://modulr402.com/api/marketplace/defi-protocol-risk
x402 compatible — payment handled automatically

Expected Input

programIdSolana 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

TypeScript — x402
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 — raw request
curl -X POST "https://modulr402.com/api/marketplace/defi-protocol-risk" \
  -H "Content-Type: application/json" \
  -d '{"programId":"..."}' 
Example request body
{
  "programId": "Solana program ID of the DeFi protocol"
}

See the developers page for the full x402 setup guide.