# Polygon Token Flow Reconstructor

> Polygon Token Flow Reconstructor is a paid API for AI agents from signalharness.ai, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Reconstructs and analyzes token transfer flows on Polygon PoS networks from caller-supplied transfer data, producing a ledger of per-account net positions

## Facts

- Endpoint: POST https://signalharness.ai/api/agent/services/polygon_token_flow_reconstruct/invoke
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/polygon-token-flow-reconstructor-07ad37d4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1PQAMPjB8mi6zzLVhWSxJ

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 polygon-token-flow-reconstructor-07ad37d4 -d '<json body>'
```

Example prompt: Can you reconstruct the token flow ledger from these Polygon PoS transfers I have — I need to see the net inflow, outflow, and net position for each wallet address involved, given this list of transfer records on chain 137.

## When to prefer this

Choose this endpoint when you have raw Polygon PoS transfer records and need a structured per-account net-position ledger without running your own on-chain indexer. It is ideal for accounting reconciliation, DeFi trade audits, or bridge flow verification where you control the input data. Prefer it over generic blockchain explorers when you need deterministic computation on caller-supplied data rather than live chain queries.

## Known failure modes

- Malformed or missing request_json causes validation error
- Transfer data referencing unsupported chain IDs (not 137 or 80002) may produce warnings or errors
- Incomplete transfer data yields partial ledger with coverage warnings
- Extremely large transfer sets may exceed the 65536-character request_json limit
- Payment failure or insufficient USDC balance blocks execution

## How this service works

Explore 330 pay-per-call x402 API services and 27 agent-native digital products, with Base USDC pricing, secure Polar checkout, and free discovery.

## Output

Returns a structured JSON ledger with per-account entries showing inflow, outflow, and net token amounts for each (account, asset, chain) tuple, plus a network context block describing the Polygon PoS protocol family, accepted chain IDs, and completion policy. Also returns transfer count, evidence scope (caller_supplied_data), and warnings about coverage limitations.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "request_json": {
   "type": "string",
   "maxLength": 65536,
   "minLength": 2
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "replay": false,
  "result": {
   "warnings": [
    "Covers supplied transfers only."
   ],
   "service_id": "polygon_token_flow_reconstruct",
   "analysis_json": "{\"ledger\":[{\"account\":\"0x0000000000000000000000000000000000000001\",\"asset\":\"0x0000000000000000000000000000000000000001\",\"chain\":\"137\",\"in\":\"0\",\"net\":\"-100\",\"out\":\"100\"},{\"account\":\"0x0000000000000000000000000000000000000002\",\"asset\":\"0x0000000000000000000000000000000000000001\",\"chain\":\"137\",\"in\":\"100\",\"net\":\"100\",\"out\":\"0\"}],\"network_context\":{\"accepted_chain_ids\":[\"137\",\"80002\"],\"bridge_model\":\"root-child state sync plus checkpoint evidence\",\"completion_policy\":\"never inferred without supplied evidence\",\"protocol_family\":\"Polygon PoS\"},\"transfer_count\":1}",
   "evidence_scope": "caller_supplied_data",
   "analyzed_network": "polygon"
  },
  "status": "succeeded",
  "receipt": {
   "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
   "usage": [],
   "status": "succeeded",
   "network": "eip155:8453",
   "artifacts": [],
   "endedAtMs": 0,
   "latencyMs": 0,
   "paymentId": "example-payment",
   "receiptId": "example-receipt",
   "requestId": "example-request",
   "serviceId": "polygon_token_flow_reconstruct",
   "executionId": "example-execution",
   "startedAtMs": 0,
   "amountAtomic": "20000",
   "resultSha256": "f900be641e9f14478bd7cf9636f09ca4268dd7645e7e8f55f2fb58c5a7112307",
   "serviceVersion": "1.0.0",
   "settlementReference": "0x0000000000000000000000000000000000000000000000000000000000000000"
  },
  "artifacts": [],
  "requestId": "example-request",
  "executionId": "example-execution"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/polygon-token-flow-reconstructor-07ad37d4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from signalharness.ai](https://www.zero.xyz/host/signalharness.ai/llms.txt)
