x402basequality 0.45

Scan wallet token approvals for dangerous unlimited allowances and get revoke recommendations via x402.

Price
per_call
Protocol
x402
Verified
no

What it does

The `/api/defi/approval-scanner` endpoint is part of DeFi Shield, a suite of 69 paid API endpoints providing security intelligence to autonomous AI agents. This specific endpoint analyzes on-chain token approvals for a given wallet address, identifying dangerous unlimited approvals and returning revoke recommendations. It is designed for AI agents operating in DeFi that need to assess or manage approval risk before executing transactions.

The endpoint accepts POST requests and is gated by the x402 payment protocol, settling in USDC on Base at $0.25 per call. Callers must include an x402 payment header; upon successful payment verification by the x402 facilitator, the endpoint processes the request and returns a JSON response. Free GET-based endpoint discovery is also available, providing schema hints and an `llm_usage_prompt` for agent integration.

DeFi Shield offers additional discovery mechanisms including a health endpoint (`/api/health`) listing all endpoints and pricing, an analytics endpoint (`/api/analytics`), and an A2A agent card at `/.well-known/agent-card.json`. The platform is at version 3.0.0 and covers 11 categories spanning DeFi intelligence, wallet intelligence, MEV/trading, NFT analysis, cross-chain data, safety/compliance, and more. No OpenAPI schema or detailed parameter documentation was found during crawl, so exact request/response shapes are inferred from the landing page examples.

Capabilities

token-approval-scanningunlimited-approval-detectionrevoke-recommendationx402-paymentusdc-base-settlementdefi-securitywallet-risk-analysisagent-to-agent-api

Use cases

  • AI agents auditing a wallet's outstanding token approvals before executing a swap
  • Automated portfolio managers identifying and revoking dangerous unlimited allowances
  • Security bots monitoring wallets for newly granted high-risk approvals
  • DeFi dashboards surfacing approval hygiene scores to users
  • Agent workflows that revoke stale or risky approvals as part of wallet maintenance

Fit

Best for

  • Autonomous DeFi agents needing approval risk data before transactions
  • Wallet security auditing pipelines
  • AI agents that manage token allowances programmatically

Not for

  • Non-EVM chains or wallets without ERC-20 style approvals
  • Free or high-volume batch scanning (each call costs $0.25)
  • Users who need a UI-based approval management tool (this is an API-only endpoint)

Quick start

# Discover endpoint schema (free)
curl https://defi-shield-hazel.vercel.app/api/defi/approval-scanner

# Paid request (requires x402 payment header)
curl -X POST https://defi-shield-hazel.vercel.app/api/defi/approval-scanner \
  -H "Content-Type: application/json" \
  -H "X-PAYMENT: <x402-payment-token>" \
  -d '{"address": "0xYourWalletAddress"}'

Example

Request

{
  "address": "0x1234567890abcdef1234567890abcdef12345678"
}

Endpoint

Transporthttp
Protocolx402
Pay to0x0814d35F25F2EF3Dffa4aEF4d137558D5E51Ed7b
CurrencyUSD COIN

Quality

0.45/ 1.00

The endpoint is live (402 challenge captured) and the landing page provides clear pricing and a brief description, but no OpenAPI schema, detailed parameter docs, or example responses were found. The x402 challenge object was empty, providing no payment details beyond what the landing page states. Response shape is entirely inferred.

Warnings

  • No OpenAPI or JSON schema available for request/response validation
  • x402 challenge returned empty object — payment parameters (asset, amount, payTo) not captured in probe
  • No dedicated docs page found (404 at /docs)
  • Example response JSON is unknown — response shape is not documented anywhere in crawled material

Citations

Provenance

Indexed fromx402_bazaar
Enriched2026-04-22 02:55:10Z · anthropic/claude-opus-4.6 · v2
First seen2026-04-21
Last seen2026-04-22

Agent access

Scan wallet token approvals for dangerous unlimited allowances and get revoke recommendations via x402. — Clawmart · Clawmart