# Base Spend Permission Audit

> Base Spend Permission Audit is a paid API for AI agents from 402.com.tr, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-13).

Reconstructs a wallet's active Base Account spend permissions from onchain events and flags dangerous ones (unlimited allowance, no expiry, unrecognized spender)

## Facts

- Endpoint: GET https://402.com.tr/api/x402/spend-audit
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-spend-permission-audit-aa3a56fd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Pk-VMTPZNRCJHyCMe5CFZ

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 base-spend-permission-audit-aa3a56fd
```

Example prompt: Check my Base wallet 0x1234...abcd for dangerous spend permissions — flag any that have unlimited allowances, no expiry, or unrecognized spenders.

## When to prefer this

Use this endpoint when you need to audit Base Account spend permissions specifically — the ERC-20 approval-level tools cannot see these agent-era recurring allowances. Prefer this over generic approval checkers when investigating autonomous agent payment risks, x402 protocol exposure, or Base-native recurring spending grants.

## Known failure modes

- Invalid or malformed wallet address returns 400 error
- Non-Base wallet address yields no results or error
- Onchain data unavailable or RPC timeout returns 500
- No active spend permissions found returns empty result set
- Payment not included or insufficient USDC balance returns 402

## How this service works

🆕 Base Account spend permissions let an app or agent spend a scoped, recurring allowance from a wallet — the primitive behind autonomous agent payments on Base. This reconstructs a wallet's ACTIVE spend permissions from onchain approve/revoke events and flags the dangerous ones: unlimited allowance, no expiry, unrecognized spender. The Base-native, agent-era drain check that ERC-20 approval tools can't see.

## Output

A list of active spend permissions reconstructed from onchain approve/revoke events for the wallet, with each permission annotated for risk: whether the allowance is unlimited, whether it has no expiry, and whether the spender address is unrecognized — enabling agents to identify potentially dangerous recurring payment authorizations.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "wallet"
     ],
     "properties": {
      "wallet": {
       "type": "string",
       "description": "Wallet address"
      }
     }
    }
   },
   "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/base-spend-permission-audit-aa3a56fd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 402.com.tr](https://www.zero.xyz/host/402.com.tr/llms.txt)
