# Delx Commerce — EVM Gas Cost Ceiling Calculator

> Delx Commerce — EVM Gas Cost Ceiling Calculator 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).

Computes the maximum possible gas cost (fee ceiling) for an EVM transaction given a gas limit and max fee per gas in wei

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/evm-gas-cost-ceiling?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-evm-gas-cost-ceiling-calculator-cbd066e0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bphM8sSGDdKLT-f0N5Lbx

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-evm-gas-cost-ceiling-calculator-cbd066e0 -d '<json body>'
```

Example prompt: What's the maximum possible gas cost for a transaction with a gas limit of 21000 and a max fee per gas of 2000000000 wei? Give me the fee ceiling in wei.

## When to prefer this

Use this endpoint when you need a deterministic, verifiable, privacy-preserving upper-bound on EVM gas costs without retaining any data — ideal for AI agents doing preflight checks before submitting on-chain transactions, enforcing spending caps, or auditing gas budgets. Prefer this over on-chain estimation when you need a pure arithmetic ceiling with cryptographic evidence of non-retention.

## Known failure modes

- Missing or invalid gas_limit (non-integer) returns an error
- Missing or malformed max_fee_per_gas_wei (non-numeric string) returns an error
- Payment not included or insufficient USDC triggers a 402 response requiring x402 payment
- Extremely large values may cause overflow or rejection

## 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 computed fee_ceiling_wei (gas_limit × max_fee_per_gas_wei as a string), the echoed gas_limit, operation name, status ('pass'), and an evidence block confirming no data was retained (retained: false), the SHA-256 of the input, and that zero external calls were made.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "gas_limit": {
   "type": "integer",
   "description": "Gas Limit supplied to EVM Gas Cost Ceiling; used only for this bounded calculation and processed in memory without retention."
  },
  "max_fee_per_gas_wei": {
   "type": "string",
   "maxLength": 8192,
   "description": "Max Fee Per Gas Wei supplied to EVM Gas Cost Ceiling; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "gas_limit": 21000,
   "fee_ceiling_wei": "42000000000000"
  },
  "schema": "delx/util-evm-gas-cost-ceiling/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "19061cf987ca5901459acb5789767ddf5192ab7d107094a556164762a62044c7",
   "external_calls": 0
  },
  "operation": "evm_preflight:evm_gas_cost_ceiling"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-evm-gas-cost-ceiling-calculator-cbd066e0/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)
