{"uid":"cap_rbr5k1Boko3FqHSZSpTTV","slug":"signalharness-polygon-gas-cost-analyzer-a5cd425d","name":"SignalHarness Polygon Gas Cost Analyzer","description":"Explore 330 pay-per-call x402 API services and 27 agent-native digital products, with Base USDC pricing, secure Polar checkout, and free discovery.","url":"https://signalharness.ai/api/agent/services/polygon_gas_cost_analyze/invoke","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"request_json":{"type":"string","maxLength":65536,"minLength":2}}},"responseSchema":{"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"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_uPlMdbbWUspkKD7fuFmUs","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes EVM gas cost parameters for Polygon PoS transactions, computing effective gas prices, execution fees, and fee headroom from caller-supplied transaction data.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Pre-flight gas validation for DeFi transaction","prompt":"Before I submit this Polygon mainnet swap, analyze these gas parameters for me: gas limit 150000, max fee per gas 500 gwei, max priority fee per gas 30 gwei, base fee 400 gwei on chain 137. Tell me the effective gas price and total execution fee."},{"title":"Automated gas cost audit in agent workflow","prompt":"My agent is about to batch-submit transactions on Polygon — can you analyze the gas cost breakdown for a transaction with gas 21000, maxFeePerGas 200, maxPriorityFeePerGas 10, and baseFee 180 on Polygon PoS chain 137, so I know the realized priority fee and cap headroom?"},{"title":"Gas fee debugging for failed transaction","prompt":"A Polygon transaction I submitted got stuck — can you analyze the gas parameters I used: gas limit 65000, max fee per gas 105, max priority fee per gas 0, base fee 0 on chain 137, and tell me the effective gas price and any warnings about the fee settings?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T07:03:05.871Z","isFirstParty":false}