# Wallet Portfolio Change Digest

> Wallet Portfolio Change Digest is a paid API for AI agents from wallet-portfolio-history-mcp.mtree.workers.dev, paid per call via x402, $0.200000/call, status unknown (last checked 2026-09-15).

Compares current wallet state against prior D1 snapshots to flag token balance deltas, new transactions, DeFi position changes, and transaction-velocity alerts before autopay or fund routing.

## Facts

- Endpoint: POST https://wallet-portfolio-history-mcp.mtree.workers.dev/tools/portfolio_change_digest
- Price: $0.200000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wallet-portfolio-change-digest-aac07ace
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OMc7-daCeHfjgCmCsG8l7

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 wallet-portfolio-change-digest-aac07ace -d '<json body>'
```

Example prompt: Before routing that payment, check wallet 0x1234...abcd for any changes since the last snapshot — flag token balance deltas, new transactions, DeFi position shifts, or any transaction-velocity spikes I should know about.

## When to prefer this

Use this endpoint when an autonomous agent needs a pre-flight safety check before executing a payment or routing funds — specifically to detect unexpected wallet state changes (balance shifts, new transactions, DeFi position changes, velocity spikes) compared to a prior snapshot. Prefer over raw transaction history endpoints when you need a delta-focused digest rather than a raw ledger.

## Known failure modes

- Wallet address not found or no prior snapshot available — returns empty or error state
- Invalid or malformed wallet address — returns validation error
- No changes detected since last snapshot — returns clean digest with no deltas
- D1 snapshot data stale or unavailable — digest may be incomplete
- Rate limit or payment failure via x402 — request rejected with payment error

## How this service works

Hosted portfolio change digest for agents: compare current wallet state against prior D1 snapshots, flag token balance deltas, new transactions, DeFi position changes, and transaction-velocity alerts before autopay or routing funds. Price 0.20 USDC on Base via x402. Demo: https://wallet-portfolio-history-mcp.mtree.workers.dev/demo/tools/portfolio_change_digest. Contact: https://wallet-portfolio-history-mcp.mtree.workers.dev/contact.

## Output

A structured portfolio change digest including token balance deltas, newly detected transactions, DeFi position changes (e.g. Aave/Compound), and transaction-velocity alerts, all compared against the prior D1 wallet snapshot. Used to inform autopay risk decisions or pre-flight fund-routing checks.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "chain": {
       "enum": [
        "base",
        "ethereum",
        "arbitrum",
        "optimism",
        "polygon"
       ],
       "type": "string"
      },
      "limit": {
       "type": "integer",
       "maximum": 50,
       "minimum": 1
      },
      "address": {
       "type": "string",
       "pattern": "^0x[a-fA-F0-9]{40}$"
      },
      "refresh": {
       "type": "boolean"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "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/wallet-portfolio-change-digest-aac07ace/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from wallet-portfolio-history-mcp.mtree.workers.dev](https://www.zero.xyz/host/wallet-portfolio-history-mcp.mtree.workers.dev/llms.txt)
