{"uid":"cap_RMau3eXaeaWamz2eMmPev","slug":"delx-commerce-base-gas-budget-check-6d7d833a","name":"Delx Commerce — Base Gas Budget 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/base-gas-budget-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"eth_usd":{"type":"number","exclusiveMinimum":0},"gas_limit":{"type":"integer","maximum":30000000,"minimum":1},"budget_eth":{"type":"number","minimum":0},"gas_price_gwei":{"type":"number","minimum":0}}},"responseSchema":{"type":"json","example":{"schema":"delx/util-base-gas-budget-check/v1","budget_eth":"0.00001","budget_wei":"10000000000000","headroom_eth":"0.00000832","headroom_wei":"8320000000000","within_budget":true,"estimated_fee_eth":"0.00000168","estimated_fee_usd":"0.00588","estimated_fee_wei":"1680000000000"}},"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_ZO6UMoB7AjhPVO4b403fH","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":"Checks whether an estimated Ethereum Base network gas fee falls within a specified ETH budget, returning fee breakdown and headroom in ETH, wei, and USD.","exampleAgentPrompt":"Before I submit this transaction on Base, check if my gas budget of 0.00001 ETH is enough — the gas limit is 21000, gas price is 0.08 gwei, and ETH is currently trading at $3500.","exampleUseCases":[{"title":"Pre-flight gas check for agent transaction","prompt":"I'm about to have my agent send a USDC transfer on Base. My gas budget is 0.00005 ETH, gas limit is 65000, gas price is 0.1 gwei, and ETH is $3400. Is my budget enough, and how much headroom is left?"},{"title":"Smart contract call cost estimation","prompt":"Can you figure out the USD cost of calling a smart contract on Base with a gas limit of 500000, gas price of 0.05 gwei, and ETH at $3600? I want to know if it fits under my 0.0001 ETH budget."},{"title":"Agentic spending guardrail before batch operations","prompt":"Before my agent kicks off a batch of 10 Base transactions, check if a 0.001 ETH gas budget is sufficient per transaction given a gas limit of 21000, 0.08 gwei gas price, and current ETH price of $3500."}],"resultDescription":"Returns a JSON object with the schema 'delx/util-base-gas-budget-check/v1' containing: the input budget in both ETH and wei, the estimated transaction fee in ETH, wei, and USD, the remaining headroom in ETH and wei after the fee, and a boolean 'within_budget' indicating whether the fee fits inside the budget.","failureModes":["Missing required fields may result in invalid computation or error response","Passing zero or negative ETH/USD price will be rejected by schema (exclusiveMinimum: 0)","Gas limit exceeding 30,000,000 will fail schema validation","Network or payment (x402) failure may prevent the call from completing","Stale ETH/USD price input leads to inaccurate USD fee estimates"],"whenToPreferThis":"Use this endpoint when an AI agent or automated workflow needs to programmatically verify that a gas budget is sufficient before submitting a transaction on the Ethereum Base network. It is ideal for pre-flight checks in agentic pipelines, spending guardrails, and cost estimation without executing the transaction. Prefer it over manual calculation when you need both ETH/wei and USD breakdowns in a single structured response, and when paying per-call with no API key via x402/USDC is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:01.004Z","isFirstParty":false,"canonicalSlug":"delx-commerce-base-gas-budget-check-6d7d833a"}