# Polygon State Sync Record Matcher

> Polygon State Sync Record Matcher is a paid API for AI agents from signalharness.ai, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-13).

Matches and analyzes Polygon PoS state sync records between L1 and L2 layers using caller-supplied evidence data.

## Facts

- Endpoint: POST https://signalharness.ai/api/agent/services/polygon_state_sync_record_match/invoke
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/polygon-state-sync-record-matcher-d95a5fd7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0APEj1K49zcr6whh35ab_

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-state-sync-record-matcher-d95a5fd7 -d '<json body>'
```

Example prompt: I need to verify that this Polygon PoS state sync record matches between L1 and L2 — here's my JSON with the L1 index 0 and L2 index 0, both showing receiver 0x0000000000000000000000000000000000000002 and data payload 0x01 on Polygon mainnet (chain ID 137). Can you run the match analysis?

## When to prefer this

Use this endpoint when you need to programmatically compare Polygon PoS L1 state sync records against L2 records using your own supplied evidence, and want structured field-level match analysis. Prefer this over on-chain RPC queries when you already have the state sync data in hand and need a cheap, fast match result without setting up blockchain infrastructure. Note it does not prove finality — use it for evidence comparison, not as a definitive bridge proof.

## Known failure modes

- Malformed or invalid request_json causes parsing failure
- Caller-supplied evidence is incomplete or missing required fields, resulting in no matches
- Chain ID not in accepted list (137 or 80002) may cause rejection
- Large payloads exceeding 65536 characters are rejected
- Result carries warning that canonical inclusion or finality is not proven

## 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 analysis JSON containing matched record pairs with per-field match results (receiver, data), a list of unmatched L2 records, and network context (accepted chain IDs, bridge model, completion policy, protocol family). Also includes a service ID, status, evidence scope label, and a warning that the result does not prove canonical inclusion or finality.

## 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": [
    "Does not prove canonical inclusion or finality."
   ],
   "service_id": "polygon_state_sync_record_match",
   "analysis_json": "{\"matches\":[{\"fields\":[{\"field\":\"receiver\",\"left\":\"0x0000000000000000000000000000000000000002\",\"match\":true,\"right\":\"0x0000000000000000000000000000000000000002\"},{\"field\":\"data\",\"left\":\"0x01\",\"match\":true,\"right\":\"0x01\"}],\"l1_index\":0,\"l2_index\":0,\"match\":true,\"state_id\":\"1\"}],\"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\"},\"unmatched_l2\":[]}",
   "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_state_sync_record_match",
   "executionId": "example-execution",
   "startedAtMs": 0,
   "amountAtomic": "20000",
   "resultSha256": "9b6a1830d2819bc719e7369388d5ef04f37cc6bcf98ba937b582d27fa42f6279",
   "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-state-sync-record-matcher-d95a5fd7/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)
