{"uid":"cap_QWEgfoI308RrxGFQB4TDt","slug":"delx-commerce-evm-gas-limit-headroom-check-e833e94b","name":"Delx Commerce — EVM Gas Limit Headroom Check","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-limit-headroom?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"gas_limit":{"type":"integer","description":"Gas Limit supplied to EVM Gas Limit Headroom; used only for this bounded calculation and processed in memory without retention."},"estimated_gas":{"type":"integer","description":"Estimated Gas supplied to EVM Gas Limit Headroom; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"sufficient":true,"headroom_gas":4200,"headroom_fraction":0.2},"schema":"delx/util-evm-gas-limit-headroom/v1","status":"pass","evidence":{"retained":false,"input_sha256":"dd71c79c3c5455d122b7167969700e4587770c75519ca55c82bfc04e7433381e","external_calls":0},"operation":"evm_preflight:evm_gas_limit_headroom"}},"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_EoN9rFdk1tM2cUkFdYvnX","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":"Calculates whether a given gas limit provides sufficient headroom over an estimated gas cost for an EVM transaction, returning the headroom amount and fraction.","exampleAgentPrompt":"Before I submit this transaction, check if a gas limit of 250000 gives me enough headroom over an estimated gas usage of 210000 — I want to know the headroom amount and whether it's sufficient.","exampleUseCases":[{"title":"Pre-submission gas safety check","prompt":"I'm about to send an EVM transaction with a gas limit of 300000 and the estimated gas is 260000 — can you check if that limit gives me enough headroom and tell me the exact headroom fraction?"},{"title":"Smart contract deployment buffer validation","prompt":"I'm deploying a contract and my gas estimate came back at 1800000. I set my gas limit to 2000000 — is that sufficient headroom, and how much gas room do I have?"},{"title":"Automated agent transaction preflight","prompt":"Before my agent submits the next on-chain call, verify that a gas limit of 150000 is enough over an estimated 130000 gas and return whether it passes the headroom check."}],"resultDescription":"Returns a JSON object with: a boolean 'sufficient' indicating if the gas limit covers the estimate with adequate headroom, 'headroom_gas' (absolute gas units of headroom), 'headroom_fraction' (fraction of gas limit that is headroom), plus evidence fields including a SHA-256 hash of the input and confirmation of zero data retention and no external calls.","failureModes":["Missing or non-integer gas_limit or estimated_gas fields returns a validation error","gas_limit of zero may cause divide-by-zero or undefined fraction","estimated_gas exceeding gas_limit returns sufficient=false with negative or zero headroom","Payment failure via x402 protocol blocks the request before computation"],"whenToPreferThis":"Use this endpoint when you need a fast, verifiable, zero-retention preflight check on EVM gas parameters before submitting a transaction. Prefer it over manual calculation when you need a cryptographic evidence receipt (input SHA-256) proving the check was performed honestly and without external data leakage, especially in automated agent workflows where auditability matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:48.053Z","isFirstParty":false,"canonicalSlug":"delx-commerce-evm-gas-limit-headroom-check-e833e94b"}