# Seneschal Address Risk Check

> Seneschal Address Risk Check is a paid API for AI agents from api.seneschal.space, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Checks whether a given Ethereum address is a known approval-drainer or honeypot token, returning a risk score, risk band, and top flags.

## Facts

- Endpoint: GET https://api.seneschal.space/v1/q/address-risk
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/seneschal-address-risk-check-37996bc3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cKZYly-ujJ3zabg7Yap3x

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 seneschal-address-risk-check-37996bc3
```

Example prompt: Before I approve 0x00000000219ab540356cBB839Cbe05303d7705Fa to spend my USDC, can you check whether it's a known approval drainer or honeypot and tell me its risk score?

## When to prefer this

Use this endpoint when an AI agent or wallet UI needs a fast, single-address pre-approval safety check before a user grants ERC-20 token approval to a spender contract, or before buying an unfamiliar token. It is powered by the same live mainnet scanner as Seneschal's premium counter-MEV feed, making it more current than static blocklists. Prefer this over generic token screeners when the threat model is specifically approval-draining or honeypot attacks on Ethereum mainnet.

## Known failure modes

- Address not in database — returns present: false with low/no risk score
- Invalid address format (not 0x…) — likely 400 error
- Payment not included or insufficient — 402 Payment Required
- Network timeout querying live mainnet scanner — 503 or timeout
- Address is newly deployed and not yet indexed — may return low risk despite being malicious

## How this service works

Single-fact wallet-safety check: is address X a known approval-drainer (malicious spender harvesting ERC-20 approvals to transferFrom-drain them — the JaredFromSubway $7.5M pattern) or a honeypot/bait token? Returns {flagged, as, risk_score, risk_band, top_flags} from the same live mainnet scanner + scorer as the premium counter-MEV feed. Check before you approve.

## Output

Returns a JSON object with: flagged (boolean indicating malicious), as (classification label e.g. 'approval-drainer'), risk_score (numeric), risk_band (e.g. 'HIGH', 'LOW'), top_flags (array of strings describing detected issues), addr (the queried address), present (whether it's in the database), as_of_ms (timestamp), and detail_endpoint (URL for full detail).

## 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"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "addr"
     ],
     "properties": {
      "addr": {
       "type": "string",
       "description": "Address to check (0x…) — a spender you are about to approve, or a token you are about to buy."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "as": {
       "type": "string"
      },
      "addr": {
       "type": "string"
      },
      "flagged": {
       "type": "boolean"
      },
      "present": {
       "type": "boolean"
      },
      "as_of_ms": {
       "type": "integer"
      },
      "risk_band": {
       "type": "string"
      },
      "top_flags": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "risk_score": {
       "type": "number"
      },
      "detail_endpoint": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "as": "malicious_spender",
  "addr": "0x1111111111111111111111111111111111111111",
  "flagged": true,
  "present": true,
  "as_of_ms": 1765532000000,
  "risk_band": "critical",
  "top_flags": [
   "unverified_source",
   "transferfrom_sweeps"
  ],
  "risk_score": 100,
  "detail_endpoint": "/v1/premium/counter-mev"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/seneschal-address-risk-check-37996bc3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.seneschal.space](https://www.zero.xyz/host/api.seneschal.space/llms.txt)
