# Anchor-x402 Ledger Summary

> Anchor-x402 Ledger Summary is a paid API for AI agents from api.anchor-x402.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Returns a paginated USDC spend summary for a wallet's x402 pay-per-call transactions, broken down by day and service recipient.

## Facts

- Endpoint: GET https://api.anchor-x402.com/v1/ledger/summary
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/anchor-x402-ledger-summary-ac182a3c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uRpq0xioGgsn9o9IY05Y-

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 anchor-x402-ledger-summary-ac182a3c
```

Example prompt: Pull my x402 ledger summary for wallet 0x7818cb9cead1e13e64a259f0867089db75e374c5 on Base for June 2026, broken down by day, and show me which services I spent the most on.

## When to prefer this

Choose this endpoint when you need structured, machine-readable USDC spend accounting for a specific wallet's x402 pay-per-call activity, especially when you want per-service grouping and daily granularity. Prefer it over a full expense report endpoint (which generates markdown/CSV asynchronously at higher cost) when you want lightweight, synchronous JSON data for programmatic analysis or dashboards.

## Known failure modes

- Invalid or checksumless wallet address returns 400 with validation error
- Unsupported chain value returns 400 with enum error
- Date range too wide may return partial results or timeout
- Wallet with zero x402 activity returns empty groups array and zero totals
- Missing required wallet field returns 422 unprocessable entity
- Payment failure (insufficient USDC balance) returns 402 Payment Required

## How this service works

x402 spend accounting for any Base wallet — totals + per-service breakdown reconstructed from chain data. $0.01 USDC.

## Output

Returns a JSON object containing: the queried wallet address, chain, direction, and date range; an array of daily USDC spend and tx_count entries; a groups array with per-service breakdown (recipient address, service_id, total USDC, tx_count, avg_call_price, first/last tx timestamps); and totals including overall USDC, tx_count, identified_pct, and unique_recipients. Also includes spec_version and registry_version fields.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string",
   "description": "ISO date, end of range. Default: now."
  },
  "from": {
   "type": "string",
   "description": "ISO date, start of range. Default: 30 days before `to`."
  },
  "wallet": {
   "type": "string",
   "description": "EVM address (Base) whose x402 spend to reconstruct."
  },
  "group_by": {
   "enum": [
    "service",
    "recipient",
    "day"
   ],
   "type": "string"
  },
  "direction": {
   "enum": [
    "outbound",
    "inbound",
    "both"
   ],
   "type": "string",
   "description": "outbound = spend (default), inbound = revenue."
  },
  "min_amount": {
   "type": "string",
   "description": "Minimum USDC per transfer, e.g. 0.001."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "base",
  "daily": [
   {
    "date": "2026-06-01",
    "usdc": "0.4110",
    "tx_count": 17
   }
  ],
  "range": {
   "to": "2026-07-01T23:59:59Z",
   "from": "2026-06-01T00:00:00Z"
  },
  "groups": [
   {
    "usdc": "8.8880",
    "label": "anchor-x402",
    "last_tx": "2026-07-01T20:03:14Z",
    "first_tx": "2026-06-01T04:11:22Z",
    "tx_count": 231,
    "recipient": "0x127462e296fac1a7f5cf33ba57bb2f0fff5cd0b6",
    "service_id": "anchor-x402.com",
    "avg_call_price": "0.0384"
   }
  ],
  "totals": {
   "usdc": "12.2910",
   "tx_count": 454,
   "identified_pct": 99.9,
   "unique_recipients": 4
  },
  "wallet": "0x7818cb9cead1e13e64a259f0867089db75e374c5",
  "direction": "outbound",
  "granularity": "day",
  "spec_version": "1.0",
  "registry_version": "2026-07-15"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/anchor-x402-ledger-summary-ac182a3c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.anchor-x402.com](https://www.zero.xyz/host/api.anchor-x402.com/llms.txt)
