# Polygon EIP-1559 Fee Analyzer

> Polygon EIP-1559 Fee Analyzer 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).

Analyzes EIP-1559 gas fee parameters (base fee, priority fee, max fee) for Polygon PoS transactions using caller-supplied data, returning a structured breakdown of effective execution costs.

## Facts

- Endpoint: POST https://signalharness.ai/api/agent/services/polygon_eip1559_fee_analyze/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-eip-1559-fee-analyzer-a8aeb285
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XoCzJtXXZT80v5zh9qTwq

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-eip-1559-fee-analyzer-a8aeb285 -d '<json body>'
```

Example prompt: Analyze these Polygon EIP-1559 fee parameters for me: base fee is 100 gwei, max fee per gas is 120 gwei, max priority fee is 5 gwei, and I'm sending a standard 21000 gas transfer on Polygon mainnet (chain ID 137) — tell me the effective gas price, cap headroom, and total execution fee.

## When to prefer this

Choose this endpoint when you need to validate or decompose EIP-1559 gas fee parameters specifically for Polygon PoS (mainnet chain 137 or Amoy testnet 80002) using values you already have — not for fetching live gas prices. Ideal for pre-submission checks, building fee displays in wallets/DApps, or auditing transaction parameters offline. Prefer this over generic gas estimation APIs when you need structured decomposition of cap headroom, realized priority fee, and execution cost from supplied data.

## Known failure modes

- Malformed or invalid request_json input causes parsing failure
- Missing required fee fields (base_fee, max_fee, gas) results in incomplete analysis
- Chain ID not in accepted list [137, 80002] may yield unsupported network warning
- Values where max_fee_per_gas < base_fee_per_gas + max_priority_fee_per_gas produce logical inconsistency warnings
- Service does not fetch live on-chain data — stale or incorrect caller-supplied inputs yield misleading but structurally valid results

## 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 object containing the analyzed network (polygon), evidence scope (caller_supplied_data), and a detailed analysis_json string with fields: base_fee_per_gas, max_fee_per_gas, max_priority_fee_per_gas, effective_gas_price, realized_priority_fee_per_gas, cap_headroom, gas, execution_fee (total cost in wei), mode (evm_fee), and a network_context block describing accepted chain IDs (137, 80002), bridge model, completion policy, and protocol family. Also includes any warnings (e.g. no live fee estimation). Status field confirms success.

## 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 estimate live fees or inclusion probability."
   ],
   "service_id": "polygon_eip1559_fee_analyze",
   "analysis_json": "{\"base_fee_per_gas\":\"100\",\"cap_headroom\":\"20\",\"effective_gas_price\":\"105\",\"execution_fee\":\"2205000\",\"gas\":\"21000\",\"max_fee_per_gas\":\"120\",\"max_priority_fee_per_gas\":\"5\",\"mode\":\"evm_fee\",\"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\"},\"realized_priority_fee_per_gas\":\"5\"}",
   "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_eip1559_fee_analyze",
   "executionId": "example-execution",
   "startedAtMs": 0,
   "amountAtomic": "10000",
   "resultSha256": "6f9c8fd4e5d472007ed7c3bbc459931245ae1adb5edfdf42cca56c46c9161e30",
   "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-eip-1559-fee-analyzer-a8aeb285/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)
