# Polygon Transaction Decode

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

Decodes and analyzes raw Polygon PoS transaction data, extracting calldata, gas parameters, and network context from caller-supplied transaction JSON.

## Facts

- Endpoint: POST https://signalharness.ai/api/agent/services/polygon_transaction_decode/invoke
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/polygon-transaction-decode-922e523a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6D7f3gnwTKd-bhIKq4H1o

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-transaction-decode-922e523a -d '<json body>'
```

Example prompt: Decode this Polygon PoS transaction for me and tell me what the calldata means, who it's sending to, what the gas settings are, and what the nonce is: {"type":"0x2","to":"0xAbCd...","data":"0xa9059cbb...","gas_limit":"21000","max_fee_per_gas":"120","nonce":"1","chain_id":"137"}

## When to prefer this

Choose this endpoint when you need to decode and inspect Polygon PoS transactions specifically, including EIP-1559 type-2 transactions with calldata. It is purpose-built for Polygon (chain ID 137 / 80002) and returns rich network context specific to Polygon PoS. Prefer it over generic EVM decoders when you need Polygon-specific network metadata such as bridge model and checkpoint evidence context.

## Known failure modes

- Invalid or malformed transaction JSON causes parse failure
- Missing required fields in the transaction object result in incomplete analysis
- Unsupported transaction type or chain ID may produce warnings or partial results
- request_json string exceeding 65536 characters will be rejected
- Non-Polygon chain IDs in the transaction may not be decoded correctly

## 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 JSON analysis of the Polygon transaction including calldata size, decoded fields (to address, value, gas limit, max fee per gas, max priority fee per gas, nonce, transaction type, chain ID), network context (accepted chain IDs, bridge model, completion policy, protocol family), the analyzed network name, evidence scope, and any warnings (e.g. that the service does not prove broadcast or finality). Also returns a receipt with service metadata.

## 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 broadcast, inclusion, or finality."
   ],
   "service_id": "polygon_transaction_decode",
   "analysis_json": "{\"calldata_bytes\":68,\"chain_id\":\"137\",\"data\":\"0xa9059cbb00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000064\",\"gas_limit\":\"21000\",\"max_fee_per_gas\":\"120\",\"max_priority_fee_per_gas\":\"5\",\"network\":\"polygon_pos_mainnet\",\"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\"},\"nonce\":\"1\",\"to\":\"0x0000000000000000000000000000000000000002\",\"type\":\"0x2\",\"value\":\"0\"}",
   "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_transaction_decode",
   "executionId": "example-execution",
   "startedAtMs": 0,
   "amountAtomic": "10000",
   "resultSha256": "7db0eef668af2e9ea5b1292f5a630e3eecc4560c0529c747b5d699657bfa9c96",
   "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-transaction-decode-922e523a/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)
