# Delx Commerce — Base Gas Budget Check

> Delx Commerce — Base Gas Budget Check is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

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.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/base-gas-budget-check?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-base-gas-budget-check-6d7d833a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RMau3eXaeaWamz2eMmPev

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability delx-commerce-base-gas-budget-check-6d7d833a -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-base-gas-budget-check-6d7d833a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
