# Token Approval Risk Check for EVM Wallets

> Token Approval Risk Check for EVM Wallets is a paid API for AI agents from wallet-portfolio-history-mcp.mtree.workers.dev, paid per call via x402, $0.200000/call, status unknown (last checked 2026-09-15).

Analyzes token approval exposure for a wallet address, flagging dangerous spender approvals, unlimited allowances, and approval-to-balance ratios with revoke-or-cap recommendations.

## Facts

- Endpoint: POST https://wallet-portfolio-history-mcp.mtree.workers.dev/tools/approval_risk
- Price: $0.200000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/token-approval-risk-check-for-evm-wallets-96245189
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PRo4vJuR90N8MIQYGf8Hd

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability token-approval-risk-check-for-evm-wallets-96245189 -d '<json body>'
```

Example prompt: Before you sign this swap, check the approval risk for wallet 0xAbC123... on Base — flag any dangerous spenders, unlimited allowances, or bad approval-to-balance ratios and tell me if I should revoke or cap anything.

## When to prefer this

Use this endpoint when an autonomous agent needs to gate-check token approvals before signing a swap or approval transaction on Base or EVM chains, especially when you need live allowance reads combined with snapshot-based policy enforcement. Prefer over generic allowance checkers when you need structured revoke/cap recommendations and agent spend-control policy in one call.

## Known failure modes

- Invalid or malformed wallet address returns an error
- Wallet with no token approvals returns empty risk results
- Network errors fetching live allowance data may produce incomplete results
- Unsupported chain (non-EVM or non-Base) may return an error or no data
- Payment not fulfilled (x402) results in 402 response blocking the check

## How this service works

Hosted approval risk check for Base and EVM agents before signing token approvals or swaps: dangerous spender approvals, unlimited allowance exposure, approval-to-balance ratios, revoke-or-cap actions, and agent spend-control policy from fresh D1 wallet snapshots plus live allowance reads. Price 0.20 USDC on Base via x402. Demo: https://wallet-portfolio-history-mcp.mtree.workers.dev/demo/tools/approval_risk. Contact: https://wallet-portfolio-history-mcp.mtree.workers.dev/contact.

## Output

Returns a token-by-token breakdown of approval exposure including dangerous spender flags, unlimited allowance indicators, approval-to-balance ratios, revoke-or-cap action recommendations, and an agent spend-control policy derived from fresh D1 wallet snapshots and live allowance reads.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "chain": {
       "enum": [
        "base",
        "ethereum",
        "arbitrum",
        "optimism",
        "polygon"
       ],
       "type": "string"
      },
      "limit": {
       "type": "integer",
       "maximum": 50,
       "minimum": 1
      },
      "address": {
       "type": "string",
       "pattern": "^0x[a-fA-F0-9]{40}$"
      },
      "refresh": {
       "type": "boolean"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-approval-risk-check-for-evm-wallets-96245189/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from wallet-portfolio-history-mcp.mtree.workers.dev](https://www.zero.xyz/host/wallet-portfolio-history-mcp.mtree.workers.dev/llms.txt)
