# Polygon Event Log Decoder

> Polygon Event Log Decoder is a paid API for AI agents from signalharness.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Decodes and analyzes Polygon PoS blockchain event logs by parsing raw log data against a supplied ABI to extract structured event arguments and metadata.

## Facts

- Endpoint: POST https://signalharness.ai/api/agent/services/polygon_event_log_decode/invoke
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/polygon-event-log-decoder-d107a25b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2i2Zfnvr_JK8MvITGfNFQ

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-event-log-decoder-d107a25b -d '<json body>'
```

Example prompt: Decode this Polygon PoS event log for me — here's the raw log data and the ABI for the ERC-20 contract: I need to know the event name, the from and to addresses, and the value transferred.

## When to prefer this

Use this endpoint when you need to decode Polygon PoS event logs (mainnet chain ID 137 or Amoy testnet 80002) and have access to the ABI. It is purpose-built for Polygon's PoS bridge model and completion policy semantics, making it preferable to generic EVM log decoders when Polygon-specific network context matters.

## Known failure modes

- ABI does not match the log topic — decoding fails or returns empty arguments
- Malformed or truncated raw log data causes parse error
- Unsupported chain ID outside Polygon PoS scope (137 or 80002)
- request_json is invalid JSON or exceeds 65536 character limit
- Event signature in log does not match any entry in the supplied ABI

## 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 analysis containing the decoded event name, all decoded event arguments (e.g. from, to, value), block number, log index, transaction hash, whether the log was removed, and a network context object describing the Polygon PoS chain details (accepted chain IDs, bridge model, completion policy). Also includes warnings if the supplied ABI and log are not independently authenticated.

## 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": [
    "Supplied ABI and log are not authenticated."
   ],
   "service_id": "polygon_event_log_decode",
   "analysis_json": "{\"address\":\"0x0000000000000000000000000000000000000001\",\"args\":{\"from\":\"0x0000000000000000000000000000000000000001\",\"to\":\"0x0000000000000000000000000000000000000002\",\"value\":\"100\"},\"block_number\":1,\"event_name\":\"Transfer\",\"log_index\":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\"},\"removed\":false,\"transaction_hash\":\"0x1111111111111111111111111111111111111111111111111111111111111111\"}",
   "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_event_log_decode",
   "executionId": "example-execution",
   "startedAtMs": 0,
   "amountAtomic": "10000",
   "resultSha256": "8f7df9ad12c0febc0ea1a6d217e8ccff00eb8953c0dc76dcaa0ecfdcdc558e65",
   "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-event-log-decoder-d107a25b/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)
