{"uid":"cap_lheYR6J6Q9iN6N19nmICq","slug":"base-network-total-transaction-cost-calculator-665dda6f","name":"Base Network Total Transaction Cost 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_total_transaction_cost/invoke","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"request_json":{"type":"string","maxLength":65536,"minLength":2}}},"responseSchema":{"type":"json","example":{"replay":false,"result":{"warnings":["Only supplied components are included."],"service_id":"base_total_transaction_cost","analysis_json":"{\"components\":{\"l1_data_fee\":\"500\",\"l2_execution_fee\":\"2205000\"},\"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\"},\"total_wei\":\"2205500\"}","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_total_transaction_cost","executionId":"example-execution","startedAtMs":0,"amountAtomic":"10000","resultSha256":"71f3f6d185a1a61d0d93316ff31fc273e88fae9e9b937f2b2d7cd27498f4f717","serviceVersion":"1.0.0","settlementReference":"0x0000000000000000000000000000000000000000000000000000000000000000"},"artifacts":[],"requestId":"example-request","executionId":"example-execution"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_iExk0mzyXyj4C2oA_anlL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the total transaction cost on the Base (OP Stack) network by summing caller-supplied L1 data fee and L2 execution fee components in wei.","exampleAgentPrompt":"Calculate the total transaction cost on Base for a transaction with an L1 data fee of 500 wei and an L2 execution fee of 2205000 wei — give me the breakdown and total in wei.","exampleUseCases":[{"title":"Gas cost estimation for dApp transactions","prompt":"I need to know the total cost in wei for a Base mainnet transaction where the L1 data fee is 800 wei and the L2 execution fee is 3500000 wei — can you compute the combined total and show me each component?"},{"title":"Fee comparison before submitting a transaction","prompt":"Before I submit this transaction to Base, compute the total transaction cost given an L1 data fee of 600 wei and an L2 execution fee of 1800000 wei, and let me know if there are any warnings about missing components."},{"title":"Transaction cost audit for a blockchain application","prompt":"Our app is logging Base transaction fees — can you compute the total wei cost for a transaction with L1 data fee 1200 wei and L2 execution fee 4100000 wei, and confirm which chain IDs are accepted?"}],"resultDescription":"Returns a JSON object containing the total cost in wei, a breakdown of individual fee components (L1 data fee and L2 execution fee), network context including accepted chain IDs (Base mainnet 8453, Base Sepolia 84532), the fee model description ('L2 execution plus caller-supplied L1 data/operator components'), the protocol family (OP Stack), and any warnings (e.g. if only partial components were supplied).","failureModes":["Invalid or malformed request_json string returns an error","Missing fee components result in warnings but partial computation","Chain ID not in accepted list (8453 or 84532) may produce unexpected results","request_json exceeding 65536 characters is rejected","Malformed JSON inside request_json string causes parsing failure"],"whenToPreferThis":"Use this endpoint when you need to programmatically compute the total on-chain transaction cost on Base (an OP Stack L2) by supplying known L1 data fee and L2 execution fee components. Prefer this over generic gas estimators when you already have the fee components and need a structured breakdown with network context validation for Base mainnet or Base Sepolia.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:14:14.887Z","isFirstParty":false}