# HyperD Budget Guardian – Agent USDC Spend Tracker

> HyperD Budget Guardian – Agent USDC Spend Tracker is a paid API for AI agents from api.hyperd.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Aggregates recent outbound USDC transfers from an EVM wallet over a configurable time window and returns total spend, per-destination breakdown, projected 24h rate, and optional budget cap compliance flags.

## Facts

- Endpoint: POST https://api.hyperd.ai/api/budget/guardian
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-hyperd-ai-8aa1ec40
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_a1rhYs1VsH0dDujytDPB5

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 api-hyperd-ai-8aa1ec40 -d '<json body>'
```

Example prompt: Before you make the next paid call, check how much USDC my wallet 0xAbC123...dEf has spent on Base in the last 24 hours and flag whether I'm still under my $50 cap.

## When to prefer this

Use this endpoint when an AI agent needs to self-enforce a USDC spending budget before initiating further paid x402 calls, or when you need a quick aggregated view of outbound USDC flows from a wallet rather than raw transaction history. Prefer this over generic block explorers when you need projected spend rates and budget cap compliance checks in a single call.

## Known failure modes

- Invalid or missing wallet address returns 400 with validation error
- Unsupported chain value returns 400 enum error
- No USDC transfer activity found returns total spend of 0 with empty breakdown
- Network or RPC timeout returns 503 or 504
- cap_usd missing causes under_cap fields to be absent from response (not an error)

## Output

Returns a JSON object with total USDC spent in the requested window, a by-destination breakdown of outbound transfers, a projected 24h spend rate, and (if cap_usd was provided) under_cap boolean, remainingUsd, and anyTxExceedsTenthOfCap flag.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "chain": "base",
   "window": "24h",
   "address": "0x1234567890123456789012345678901234567890",
   "cap_usd": 50
  }
 }
}
```

## 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": [
      "address"
     ],
     "properties": {
      "chain": {
       "enum": [
        "base",
        "ethereum",
        "polygon",
        "arbitrum",
        "optimism",
        "avalanche",
        "bnb"
       ],
       "type": "string",
       "description": "Chain to compute spend on. Default 'base'."
      },
      "window": {
       "enum": [
        "1h",
        "24h",
        "7d",
        "30d"
       ],
       "type": "string",
       "description": "Lookback window. Default '24h'."
      },
      "address": {
       "type": "string",
       "description": "0x EVM wallet address"
      },
      "cap_usd": {
       "type": "number",
       "description": "Optional self-imposed USDC cap. When provided, response includes under_cap, remainingUsd, and anyTxExceedsTenthOfCap."
      }
     }
    }
   },
   "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/api-hyperd-ai-8aa1ec40/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.hyperd.ai](https://www.zero.xyz/host/api.hyperd.ai/llms.txt)
