# SignalHarness Polygon Gas Cost Analyzer

> SignalHarness Polygon Gas Cost Analyzer is a paid API for AI agents from signalharness.ai, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Analyzes EVM gas cost parameters for Polygon PoS transactions, computing effective gas prices, execution fees, and fee headroom from caller-supplied transaction data.

## Facts

- Endpoint: POST https://signalharness.ai/api/agent/services/polygon_gas_cost_analyze/invoke
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/signalharness-polygon-gas-cost-analyzer-a5cd425d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rbr5k1Boko3FqHSZSpTTV

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 signalharness-polygon-gas-cost-analyzer-a5cd425d -d '<json body>'
```

Example prompt: Analyze the gas cost for my Polygon transaction — I have a standard transfer with gas limit 21000, max fee per gas 105 gwei, max priority fee per gas 0, and base fee 0 on chain 137. Break down the effective gas price and total execution fee.

## When to prefer this

Choose this endpoint when you need to decompose and validate EVM gas fee parameters specifically for Polygon PoS transactions (mainnet chain 137 or Amoy testnet 80002) before or after submission. It is ideal for agent workflows that need to audit gas settings, compute execution costs from known parameters, or validate fee headroom without requiring on-chain gas oracle data. Prefer this over generic gas estimators when working with caller-supplied transaction data rather than live network queries.

## Known failure modes

- Invalid or malformed request_json causes parsing failure
- Unsupported chain ID outside Polygon PoS accepted list (137, 80002) may yield incomplete analysis
- Missing required gas fields in input JSON may produce incomplete or warning-heavy results
- Extremely large request_json exceeding 65536 character limit will be rejected
- Payment failure or insufficient USDC balance prevents 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 analysis JSON containing: effective_gas_price, execution_fee, cap_headroom, realized_priority_fee_per_gas, base_fee_per_gas, max_fee_per_gas, max_priority_fee_per_gas, gas limit used, operating mode (evm_fee), and network_context with accepted chain IDs (137 for Polygon mainnet, 80002 for Amoy testnet), bridge model, and completion policy. Also returns any warnings (e.g. if current gas is not estimated), the analyzed network name, and evidence scope indicating that analysis is based on caller-supplied data.

## 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 current gas."
   ],
   "service_id": "polygon_gas_cost_analyze",
   "analysis_json": "{\"base_fee_per_gas\":\"0\",\"cap_headroom\":\"105\",\"effective_gas_price\":\"105\",\"execution_fee\":\"2205000\",\"gas\":\"21000\",\"max_fee_per_gas\":\"105\",\"max_priority_fee_per_gas\":\"0\",\"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\":\"105\"}",
   "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_gas_cost_analyze",
   "executionId": "example-execution",
   "startedAtMs": 0,
   "amountAtomic": "5000",
   "resultSha256": "5bd43cc40e9f6531a28cef9a77c6b39386a6e987413d0077c61b09104579a00d",
   "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/signalharness-polygon-gas-cost-analyzer-a5cd425d/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)
