Smart contract risk scoring with admin detection and deployer analysis, paid per call via x402 on Base.
What it does
The `/api/defi/contract-risk` endpoint is part of DeFi Shield, a suite of 69 paid API endpoints providing security intelligence for autonomous AI agents. This specific endpoint performs smart contract risk scoring, including admin key detection and deployer analysis. It accepts a POST request with a contract address and returns a risk assessment. Payment is $0.50 per call in USDC on Base via the x402 protocol.
DeFi Shield covers 11 categories including DeFi intelligence, wallet intelligence, protocol risk, MEV/trading analysis, NFT intelligence, cross-chain data, safety/compliance checks, developer security, agent-to-agent trust, data infrastructure, and real-time monitoring. Each endpoint supports free GET-based discovery (returning an `llm_usage_prompt`) and paid POST requests requiring an x402 payment header. The platform advertises that payment settles only on successful response.
The endpoint is live and returns a 402 challenge on unauthenticated POST requests, confirming x402 protocol operation. However, the 402 challenge body was empty (no payment details like amount, token, or network were included in the probe), and no OpenAPI schema or detailed documentation page was found. The landing page lists the endpoint and its price but does not provide request/response schemas or example payloads beyond a minimal curl snippet showing `{"address": "0x..."}` as the request body.
Capabilities
Use cases
- —AI agents evaluating smart contract safety before interacting with a DeFi protocol
- —Automated portfolio managers screening tokens for rug-pull risk indicators
- —Trading bots checking deployer history and admin privileges before executing swaps
- —Security dashboards aggregating contract risk scores across multiple protocols
- —Agent-to-agent workflows where one agent purchases risk intelligence on behalf of another
Fit
Best for
- —Autonomous AI agents needing per-call DeFi security intelligence
- —Developers building automated contract screening pipelines
- —On-chain risk assessment integrated into trading or investment workflows
Not for
- —Full smart contract audits requiring manual code review
- —Users who need free or bulk-discounted security data
- —Non-EVM chain contract analysis (no evidence of non-EVM support)
Quick start
# Free discovery (returns usage prompt)
curl https://defi-shield-hazel.vercel.app/api/defi/contract-risk
# Paid request (requires x402 payment header)
curl -X POST https://defi-shield-hazel.vercel.app/api/defi/contract-risk \
-H "Content-Type: application/json" \
-H "X-PAYMENT: <x402-payment-token>" \
-d '{"address": "0x..."}'Example
Request
{
"address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
}Endpoint
Quality
The endpoint is live (402 on POST) and the landing page provides a clear description, price ($0.50), and minimal usage example. However, the 402 challenge body was empty (no payment parameters captured), no OpenAPI schema exists, no docs page was found, and no response schema or example response is available. Pricing and capabilities are inferred solely from the landing page listing.
Warnings
- —Empty x402 challenge body — no payment parameters (amount, token, network) were returned in the probe, making it unclear how an agent would construct a valid payment header.
- —No OpenAPI or JSON schema available for request or response validation.
- —No documentation page found (/docs returns 404).
- —Response format is entirely unknown — no example response is available anywhere in the crawl.
- —Price of $0.50 is stated on the landing page but not confirmed by the 402 challenge payload.
Citations
- —DeFi Shield offers 69 paid API endpoints for security intelligence via x402 on Basehttps://defi-shield-hazel.vercel.app
- —/api/defi/contract-risk provides smart contract risk scoring, admin detection, deployer analysis at $0.50 per callhttps://defi-shield-hazel.vercel.app
- —Payment settles only on successful response; agents pay via x402 payment header with USDChttps://defi-shield-hazel.vercel.app
- —Free endpoint discovery is available via GET on each endpointhttps://defi-shield-hazel.vercel.app