{"uid":"cap_bphM8sSGDdKLT-f0N5Lbx","slug":"delx-commerce-evm-gas-cost-ceiling-calculator-cbd066e0","name":"Delx Commerce — EVM Gas Cost Ceiling Calculator","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/evm-gas-cost-ceiling?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"gas_limit":{"type":"integer","description":"Gas Limit supplied to EVM Gas Cost Ceiling; used only for this bounded calculation and processed in memory without retention."},"max_fee_per_gas_wei":{"type":"string","maxLength":8192,"description":"Max Fee Per Gas Wei supplied to EVM Gas Cost Ceiling; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"gas_limit":21000,"fee_ceiling_wei":"42000000000000"},"schema":"delx/util-evm-gas-cost-ceiling/v1","status":"pass","evidence":{"retained":false,"input_sha256":"19061cf987ca5901459acb5789767ddf5192ab7d107094a556164762a62044c7","external_calls":0},"operation":"evm_preflight:evm_gas_cost_ceiling"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wtWWbeFKeVdA3cP7vLbYz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the maximum possible gas cost (fee ceiling) for an EVM transaction given a gas limit and max fee per gas in wei","exampleAgentPrompt":"What's the maximum possible gas cost for a transaction with a gas limit of 21000 and a max fee per gas of 2000000000 wei? Give me the fee ceiling in wei.","exampleUseCases":[{"title":"Preflight check before ETH transfer","prompt":"Before I send an ETH transfer, what's the absolute worst-case gas cost if my gas limit is 21000 and the max fee per gas is 5000000000 wei?"},{"title":"Smart contract call cost ceiling","prompt":"I'm about to call a smart contract that needs a gas limit of 200000 and I've set a max fee per gas of 30000000000 wei — what's the maximum I could possibly pay in gas fees?"},{"title":"Agent budget guardrail for on-chain action","prompt":"Check if my gas budget is safe: I'm allowing up to 500000 gas and my max fee per gas is 10000000000 wei. What's the fee ceiling in wei so I can compare it to my budget?"}],"resultDescription":"Returns a JSON object with the computed fee_ceiling_wei (gas_limit × max_fee_per_gas_wei as a string), the echoed gas_limit, operation name, status ('pass'), and an evidence block confirming no data was retained (retained: false), the SHA-256 of the input, and that zero external calls were made.","failureModes":["Missing or invalid gas_limit (non-integer) returns an error","Missing or malformed max_fee_per_gas_wei (non-numeric string) returns an error","Payment not included or insufficient USDC triggers a 402 response requiring x402 payment","Extremely large values may cause overflow or rejection"],"whenToPreferThis":"Use this endpoint when you need a deterministic, verifiable, privacy-preserving upper-bound on EVM gas costs without retaining any data — ideal for AI agents doing preflight checks before submitting on-chain transactions, enforcing spending caps, or auditing gas budgets. Prefer this over on-chain estimation when you need a pure arithmetic ceiling with cryptographic evidence of non-retention.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:38.293Z","isFirstParty":false,"canonicalSlug":"delx-commerce-evm-gas-cost-ceiling-calculator-cbd066e0"}