# Agentic Finance Graph — Drain Check

> Agentic Finance Graph — Drain Check is a paid API for AI agents from agenticfinancegraph.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-14).

Returns whether a specific ERC-8004 AI agent on Base has tripped the 'drain' anomaly check, with historical hit records showing USD amounts and multiples.

## Facts

- Endpoint: GET https://agenticfinancegraph.com/check/drain?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentic-finance-graph-drain-check-8a3cd9f7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_agMIsub4-sRhzmtKeWrd1

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 agentic-finance-graph-drain-check-8a3cd9f7
```

Example prompt: Can you check whether agent 8004-base-53008 has ever tripped the drain anomaly — I want to see if it has any flagged hits and what the USD amounts looked like.

## When to prefer this

Use this endpoint when you need to detect or audit anomalous drain events for a specific ERC-8004 agent on Base — particularly when vetting agents before integration, monitoring known agents for runaway spend, or investigating flagged payment behavior. Only agents that have actually made payments (rank L7+) have records; use the liveness/rank endpoint first if unsure whether an agent qualifies.

## Known failure modes

- 404 returned if the agent has never been observed making a payment (rank below L7) — payment is required before a record exists
- Invalid or unrecognized token ID, slug, or wallet address returns an error
- Agent exists on a chain other than Base (53008) will not be found
- Rate limiting or quota errors if the endpoint is called excessively

## How this service works

Drain shape: The public 5× / $250 / never-paid rule applied to this wallet's payments, and whether it tripped. About one ERC-8004 agent on Base, by Agentic Finance Graph. id = token id, slug or bound wallet; an agent never seen paying is a 404 before any payment.

## Output

Returns a JSON object with the agent's ID, a timestamp (as_of), the check name ('check.drain'), a boolean 'tripped' flag indicating whether the drain anomaly was triggered, and an array of historical hit records each containing the USD amount and the spending multiple that caused the flag.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "id"
     ],
     "properties": {
      "id": {
       "type": "string",
       "description": "ERC-8004 token id on Base (53008), slug (8004-base-53008) or the agent's bound wallet 0x…. Only agents observed paying a counterparty (rank L7+) have a record; anything else is a 404 before payment."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "act_8453_57725",
  "as_of": "2026-09-26T12:46:22Z",
  "check": "check.drain",
  "tripped": true,
  "hits_in_record": [
   {
    "usd": 1200,
    "multiple": 6.5
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentic-finance-graph-drain-check-8a3cd9f7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agenticfinancegraph.com](https://www.zero.xyz/host/agenticfinancegraph.com/llms.txt)
