Pre-trade security check for DeFi tokens via x402-paid API on Base (USDC).
What it does
DeFi Shield is a suite of 69 paid API endpoints providing security intelligence for autonomous AI agents operating in DeFi. The `/api/defi/pre-trade-check` endpoint is part of the DeFi Intelligence category, though its exact functionality is not individually documented on the landing page — it does not appear in the listed 69 endpoints. It likely performs a pre-trade safety assessment (e.g., honeypot detection, liquidity checks, or contract risk flags) before an agent executes a swap or trade. The endpoint is live and responds with an HTTP 402 challenge on POST, confirming it uses the x402 protocol with USDC payments on Base.
The broader DeFi Shield platform covers 11 categories including DeFi Intelligence, Safety & Compliance, Wallet Intelligence, MEV & Trading, NFT Intelligence, Cross-Chain analysis, Agent-to-Agent Trust, and more. Prices range from $0.01 to $2.50 per call. Each endpoint supports free GET-based discovery (returning an `llm_usage_prompt`) and paid POST requests requiring an x402 payment header. Payment settles in USDC on Base only upon successful response.
No dedicated documentation page exists (the `/docs` route returns 404), and no OpenAPI schema was found. The specific `/api/defi/pre-trade-check` endpoint is not listed among the 69 endpoints on the homepage, which raises questions about whether it is a newer addition, an alias, or an unlisted endpoint. Discovery endpoints at `/api/health` and `/.well-known/agent-card.json` may provide additional metadata.
Capabilities
Use cases
- —AI trading agents verifying token safety before executing a swap
- —Autonomous portfolio managers screening tokens for rug-pull indicators before entry
- —DeFi bots checking liquidity and contract risk as part of a pre-trade pipeline
- —Agent workflows that gate trade execution on a security score
Fit
Best for
- —Autonomous AI agents that need programmatic pre-trade risk checks
- —DeFi trading bots requiring per-call security intelligence
- —Agent-to-agent workflows where trust verification precedes on-chain transactions
Not for
- —Manual/human-only trading workflows that need a UI dashboard
- —Free or high-volume bulk scanning (every call costs USDC)
- —Non-EVM chains or assets outside DeFi token markets
Quick start
# Free discovery (returns llm_usage_prompt)
curl https://defi-shield-hazel.vercel.app/api/defi/pre-trade-check
# Paid request (requires x402 payment header)
curl -X POST https://defi-shield-hazel.vercel.app/api/defi/pre-trade-check \
-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 documents the broader DeFi Shield platform well, but this specific endpoint (/api/defi/pre-trade-check) is not listed among the 69 documented endpoints. No OpenAPI schema, no dedicated docs, and the x402 challenge body was empty, so pricing and exact request/response schema are unknown.
Warnings
- —Endpoint /api/defi/pre-trade-check is NOT listed among the 69 endpoints on the DeFi Shield homepage — it may be unlisted, experimental, or an alias.
- —No OpenAPI or JSON schema available; request/response formats are inferred.
- —The x402 challenge body was empty ({}), so the exact price and payment parameters could not be confirmed.
- —The /docs route returns 404 — no dedicated documentation exists.
Citations
- —DeFi Shield offers 69 paid API endpoints across 11 categories with prices from $0.01 to $2.50 per callhttps://defi-shield-hazel.vercel.app
- —Payment is via USDC on Base using the x402 protocolhttps://defi-shield-hazel.vercel.app
- —Each endpoint supports free GET discovery with llm_usage_prompt and paid POST with x402 payment headerhttps://defi-shield-hazel.vercel.app
- —The /docs route returns 404https://defi-shield-hazel.vercel.app/docs