# Macaroon Network Polymathica Transaction Intelligence

> Macaroon Network Polymathica Transaction Intelligence is a paid API for AI agents from api.macaroonnetwork.com, paid per call via x402, $0.015/call, status unknown (last checked 2026-09-15).

Returns aggregate payment-rail statistics (volume, success rate, task-state breakdowns) across Polymathica marketplace rails by rail type and time window, with no individual transaction or wallet data exposed.

## Facts

- Endpoint: POST https://api.macaroonnetwork.com/execute/polymathica-transaction-intelligence-v1
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/macaroon-network-polymathica-transaction-intelligence-586190b7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yLX-yBJjoyNic3P1OCLDm

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 macaroon-network-polymathica-transaction-intelligence-586190b7 -d '<json body>'
```

Example prompt: Pull the aggregate transaction stats for the Polymathica marketplace — I want to see volume, success rate, and task-state breakdowns split by payment rail for the past 7 days.

## When to prefer this

Choose this endpoint when you need privacy-safe, aggregate-level insight into payment rail performance on the Polymathica marketplace — specifically volume, success rates, and task-state distributions over time windows. Prefer this over raw transaction logs or individual payment record lookups when compliance, privacy constraints, or high-level trend analysis are the goal. It is not suitable when you need individual transaction details, wallet-level attribution, or cross-marketplace comparisons outside Polymathica.

## Known failure modes

- Invalid or missing time window parameter returns a 400-level validation error
- Unsupported rail filter value causes a schema rejection
- Service unavailability or upstream data pipeline lag may return a 503 or stale-data indicator
- Malformed request body type (non-JSON when JSON expected) triggers a bodyType mismatch error
- Empty result set returned if no transactions occurred in the specified window

## How this service works

Measure live, aggregate commerce activity across this marketplace's payment rails, including volume, success rates, and task-state breakdowns by rail and time window. Privacy-preserving by design: no buyer wallet, transaction hash, Lightning node id, or individual payment record is returned.

## Output

Returns privacy-safe aggregate statistics over the marketplace's payment rails, including transaction volume counts, success and failure rates, and task-state (e.g. pending, completed, failed) breakdowns segmented by rail type and the requested time window. No individual wallet addresses, transaction hashes, Lightning node IDs, or per-buyer records are included in the response.

## 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"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "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/macaroon-network-polymathica-transaction-intelligence-586190b7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.macaroonnetwork.com](https://www.zero.xyz/host/api.macaroonnetwork.com/llms.txt)
