# Wallet Transaction Pattern Analyzer

> Wallet Transaction Pattern Analyzer 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).

Analyzes a wallet's transaction patterns including method mix, cadence, inbound/outbound flow, failed status signals, top counterparties, protocol touches, burst risk score, and autopay policy from refreshed D1 history

## Facts

- Endpoint: POST https://wallet-portfolio-history-mcp.mtree.workers.dev/tools/transaction_patterns
- 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-transaction-pattern-analyzer-17c346c6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LYacfgdvMBrS0pPQ7K_Ch

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-transaction-pattern-analyzer-17c346c6 -d '<json body>'
```

Example prompt: Pull a full transaction pattern analysis for wallet 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD on Base — I want to see the method mix, inbound/outbound flow, burst risk score, failed-call patterns, and top counterparties so I can decide whether to allow autopay.

## When to prefer this

Choose this endpoint when you need a comprehensive behavioral profile of a wallet's transaction patterns — especially method mix, cadence, burst risk, and autopay policy signals — rather than just a raw transaction list or a simple risk score. Prefer this over the wallet risk scorer when you want the underlying pattern breakdown rather than a single 0-100 score, and over transaction history when you need derived analytics rather than raw data.

## Known failure modes

- Invalid or unrecognized wallet address returns an error
- Wallet with no transaction history on Base returns empty or minimal results
- D1 snapshot not yet refreshed for a very new wallet
- Payment not received or x402 payment failure blocks the response
- Rate limiting if too many calls are made in rapid succession

## How this service works

Hosted wallet transaction-pattern analysis for agents: method mix, cadence, inbound/outbound flow, failed status pattern, top counterparties, protocol touches, burst risk score, and autopay policy from refreshed D1 wallet history. Price 0.20 USDC on Base via x402. Demo: https://wallet-portfolio-history-mcp.mtree.workers.dev/demo/tools/transaction_patterns. Contact: https://wallet-portfolio-history-mcp.mtree.workers.dev/contact.

## Output

Returns a structured report covering transaction method mix, cadence metrics, inbound vs outbound flow ratios, failed transaction status patterns, ranked top counterparties, protocol touchpoints, a burst risk score, and a recommended autopay policy — all derived from refreshed D1 wallet history snapshots on Base.

## 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-transaction-pattern-analyzer-17c346c6/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)
