{"uid":"cap_sXeJeNv7n-VRu8gc4rz0k","slug":"delx-evm-gas-limit-headroom-7228fd50","name":"Delx EVM Gas Limit Headroom","description":"EVM Gas Limit Headroom: EVM Gas Limit Headroom calculates gas-limit headroom above an estimated gas amount from bounded caller-supplied values without an external provider. Call EVM Gas Limit Headroom before signing, submitting, replacing, or accepting an EVM/Base transaction assembled from caller-owned data. Returns normalized transaction evidence, calculated budget or shape findings, and a fail-closed preflight status for EVM Gas Limit Headroom as versioned deterministic JSON. Price: $0.001 U…","url":"https://api.delx.ai/api/v1/x402/evm-gas-limit-headroom","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_EI1uUIQiWAFR5WhHGd4vh","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 whether a given gas limit provides sufficient headroom over an estimated gas usage, returning the surplus gas amount and fraction.","exampleAgentPrompt":"Before I submit this transaction, check if a gas limit of 21000 is sufficient for an estimated gas usage of 17800 — tell me if there's enough headroom and by how much.","exampleUseCases":[{"title":"Transaction preflight gas safety check","prompt":"I'm about to send an EVM transaction with a gas limit of 50000 and my gas estimator says it'll use about 42000 — can you verify there's enough headroom and tell me the exact surplus?"},{"title":"Smart contract deployment buffer validation","prompt":"My smart contract deployment is estimated to consume 180000 gas and I've set a limit of 210000 — run a preflight check to confirm I have sufficient headroom and what fraction is left."},{"title":"Agent batch transaction gas guard","prompt":"Before my agent submits these calls, check if a gas limit of 75000 covers an estimated 71000 gas usage — I need to know if it's sufficient and how much gas is left as buffer."}],"resultDescription":"Returns a JSON object indicating whether the gas limit is sufficient (boolean), the absolute headroom in gas units, and the headroom as a fraction of the gas limit. Also includes audit evidence fields confirming no data retention and no external calls were made.","failureModes":["Missing or non-integer gas_limit or estimated_gas values cause validation errors","Estimated gas exceeding gas limit returns sufficient: false with negative or zero headroom","Malformed request body returns HTTP 400 or similar client error","Payment failure via x402 protocol results in 402 response before computation occurs"],"whenToPreferThis":"Use this endpoint when an AI agent needs a lightweight, stateless preflight check to confirm an EVM transaction's gas limit safely covers the estimated gas before submission. It is ideal for automated agent pipelines that must guard against out-of-gas failures without building custom arithmetic. Prefer this over manual calculation when you need a structured, auditable result including the headroom fraction and a confirmation that no data is retained.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:49:47.646Z","isFirstParty":false}