{"uid":"cap_lEbvHabaXsYCq_ItCqa7t","slug":"base-l2-execution-fee-calculator-b72d2e84","name":"Base L2 Execution Fee 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_l2_execution_fee_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":["Excludes L1 data and operator fees unless separately supplied."],"service_id":"base_l2_execution_fee_calculate","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\":[\"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\":\"105\"}","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_l2_execution_fee_calculate","executionId":"example-execution","startedAtMs":0,"amountAtomic":"5000","resultSha256":"4af4378aea225fc6b630f0ab595847f3842afb618f8e56e4b07b6d1c56ad27d7","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_yfgA1wK3eSoeKw5W73ZCP","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 L2 execution fee for a transaction on the Base network given gas parameters, returning effective gas price, execution fee, and OP Stack fee model details.","exampleAgentPrompt":"Calculate the L2 execution fee on Base mainnet for a standard ETH transfer using 21000 gas, with a max fee per gas of 105 wei and max priority fee of 0 wei — I need the total execution fee and effective gas price breakdown.","exampleUseCases":[{"title":"Pre-flight transaction cost check","prompt":"Before I send this token transfer on Base, can you estimate the L2 execution fee using 65000 gas, max fee per gas of 200 wei, and max priority fee of 10 wei? I want to make sure I'm not overpaying."},{"title":"DeFi protocol fee modeling","prompt":"I'm building a DeFi app on Base and need to model execution costs — calculate the L2 execution fee for a swap transaction using 150000 gas, base fee of 50 wei, and max fee per gas of 300 wei so I can show users an accurate fee estimate."},{"title":"Gas optimization audit","prompt":"I'm comparing two contract calls on Base to see which is cheaper — calculate the L2 execution fees for a transaction with 80000 gas and max fee per gas of 105 wei, and tell me the effective gas price and any warnings about excluded fees."}],"resultDescription":"Returns a JSON object containing the calculated execution fee in wei, effective gas price, base fee per gas, max fee per gas, realized priority fee per gas, cap headroom, the analysis mode (evm_fee), network context (accepted chain IDs 8453/84532, OP Stack fee model), and any warnings about excluded fee components such as L1 data fees or operator fees. Also includes a service receipt with payment details and a SHA256 hash of the result.","failureModes":["Invalid or malformed request_json input returns an error","Gas parameters outside acceptable range may produce warnings or errors","Missing required gas fields in the input JSON cause computation failure","Unsupported chain ID returns a network context mismatch error","Malformed JSON string (not a valid JSON object) causes parse failure"],"whenToPreferThis":"Choose this endpoint when you need a precise, auditable calculation of the L2 execution fee component on Base (chain IDs 8453 or 84532) using OP Stack fee model semantics. It is ideal when you already have gas parameters (gas limit, max fee per gas, max priority fee) and need the fee computed without submitting a transaction. Note it explicitly excludes L1 data and operator fees, so use it when you want only the L2 execution component or will supply L1/operator fees separately. Prefer this over on-chain RPC estimation when you need deterministic, off-chain fee analysis with detailed breakdowns.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T07:02:23.523Z","isFirstParty":false}