{"uid":"cap_r-2pnT5zqq8sEscd5cbPv","slug":"base-network-effective-gas-price-calculator-4fcb358d","name":"Base Network Effective Gas Price Calculator","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/base_effective_gas_price_calculate/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 future or live fees."],"service_id":"base_effective_gas_price_calculate","analysis_json":"{\"base_fee_per_gas\":\"100\",\"cap_headroom\":\"20\",\"effective_gas_price\":\"105\",\"execution_fee\":\"0\",\"gas\":\"0\",\"max_fee_per_gas\":\"120\",\"max_priority_fee_per_gas\":\"5\",\"mode\":\"evm_effective_price\",\"network_context\":{\"accepted_chain_ids\":[\"8453\",\"84532\"],\"deposit_transaction_type\":\"0x7e\",\"fee_model\":\"L2 execution plus caller-supplied L1 data/operator components\",\"protocol_family\":\"OP Stack\"},\"realized_priority_fee_per_gas\":\"5\"}","evidence_scope":"caller_supplied_data","analyzed_network":"base"},"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":"base_effective_gas_price_calculate","executionId":"example-execution","startedAtMs":0,"amountAtomic":"5000","resultSha256":"df883f12ec84e2f1145d002313d7cc571026ede628c6a71a044ec0a367e34c35","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_TpdVRdxnRLsQK6b67-nHm","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":"Calculates the effective gas price for a transaction on the Base (OP Stack) network given caller-supplied EVM fee parameters","exampleAgentPrompt":"Given a base fee of 100 gwei, max fee per gas of 120 gwei, and max priority fee per gas of 5 gwei, calculate the effective gas price that would actually be paid on the Base mainnet network.","exampleUseCases":[{"title":"Verify gas fee before submitting transaction","prompt":"I'm about to submit a transaction on Base mainnet with a base fee of 80 gwei, max fee of 100 gwei, and priority fee of 3 gwei — can you compute the effective gas price I'll actually pay so I can confirm it's reasonable before I send it?"},{"title":"Optimize priority fee for fast inclusion","prompt":"I want to know the realized priority fee and cap headroom if I set my max fee per gas to 150 gwei, base fee is 120 gwei, and I'm offering a 10 gwei priority fee — run the effective gas price calculation so I can decide whether to raise or lower my tip."},{"title":"Audit historical transaction fee parameters","prompt":"I have a Base network transaction where the base fee was 95 gwei, max fee was 110 gwei, and max priority fee was 4 gwei — calculate the effective gas price and break down the OP Stack fee components so I can reconcile my gas cost records."}],"resultDescription":"Returns a JSON object containing the computed effective_gas_price, realized_priority_fee_per_gas, cap_headroom, execution_fee, and the original input parameters (base_fee_per_gas, max_fee_per_gas, max_priority_fee_per_gas, gas). Also includes network_context describing the OP Stack fee model, accepted chain IDs (Base mainnet 8453 and testnet 84532), and the mode used (evm_effective_price). A warnings field notes that this does not estimate future or live fees. The response also includes a receipt with payment metadata.","failureModes":["Invalid or malformed request_json input returns an error","Missing required fee parameter fields in the JSON payload causes computation failure","Providing non-numeric values for gas parameters results in a validation error","request_json string exceeding 65536 characters is rejected","Network or service unavailability returns a failed status in the receipt"],"whenToPreferThis":"Choose this endpoint when you need to deterministically compute the effective gas price from caller-supplied EVM fee parameters on the Base (OP Stack) network, rather than fetching live gas prices from the chain. It is ideal for pre-flight transaction cost verification, fee auditing, or building gas estimation tooling where you already have the fee parameters and want to derive the realized cost without a live RPC call. It is not suitable for fetching current on-chain gas prices or forecasting future gas prices.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:53:12.964Z","isFirstParty":false}