{"uid":"cap_JSclBGjP0T8YE_rTro4WV","slug":"evm-receipt-gas-variance-calculator-c2967815","name":"EVM Receipt Gas Variance 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-receipt-gas-variance?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"gas_used":{"type":"integer","description":"Gas Used supplied to EVM Receipt Gas Variance; used only for this bounded calculation and processed in memory without retention."},"estimated_gas":{"type":"integer","description":"Estimated Gas supplied to EVM Receipt Gas Variance; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"delta_gas":1000,"under_estimate":true,"variance_fraction":0.04761904761904762},"schema":"delx/util-evm-receipt-gas-variance/v1","status":"pass","evidence":{"retained":false,"input_sha256":"a8bc5f5e6432a5c0ce8704795f333314b6d4458c5d628cf11f5e511b08a257c6","external_calls":0},"operation":"evm_preflight:evm_receipt_gas_variance"}},"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_y-EBym4JQ5siq9AyrGkE7","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 delta, direction, and fractional variance between estimated and actual gas used in an EVM transaction receipt","exampleAgentPrompt":"I just submitted an EVM transaction that used 22,000 gas but I had estimated 21,000 — can you calculate the gas variance, tell me if it was underestimated, and give me the variance fraction?","exampleUseCases":[{"title":"Post-transaction gas audit","prompt":"My Ethereum transaction ended up using 45000 gas but I estimated 42000 — can you compute the gas delta and tell me whether I underestimated and by what fraction?"},{"title":"Smart contract gas tuning","prompt":"I'm optimizing my smart contract calls: the estimated gas was 80000 and actual gas used was 76500. What's the variance fraction and did I over- or under-estimate?"},{"title":"DeFi bot preflight validation","prompt":"Before I finalize my gas estimation logic, check this: estimated gas was 150000, actual gas used was 157500 — give me the delta, variance fraction, and whether it was an underestimate."}],"resultDescription":"Returns a JSON object with delta_gas (integer difference between actual and estimated), under_estimate (boolean indicating whether actual exceeded estimate), and variance_fraction (fractional deviation). Also includes a status field ('pass'), operation identifier, and an evidence block confirming no data retention and the input SHA-256 hash for verifiability.","failureModes":["Missing required fields (gas_used or estimated_gas) returns a validation error","Non-integer inputs rejected with schema error","Payment failure via x402 results in 402 response before computation","Division-by-zero edge case if estimated_gas is 0"],"whenToPreferThis":"Choose this endpoint when you need a fast, verifiable, privacy-preserving computation of EVM gas variance with cryptographic evidence of no data retention. Ideal for AI agents running EVM preflight checks, gas estimation audits, or post-transaction analysis without needing to set up infrastructure. At $0.001 USDC per call it is cost-effective for high-frequency agent loops.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:10.403Z","isFirstParty":false,"canonicalSlug":"evm-receipt-gas-variance-calculator-c2967815"}