# EVM Receipt Gas Variance Calculator

> EVM Receipt Gas Variance 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 delta, direction, and fractional variance between estimated and actual gas used in an EVM transaction receipt

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/evm-receipt-gas-variance?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/evm-receipt-gas-variance-calculator-c2967815
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JSclBGjP0T8YE_rTro4WV

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 evm-receipt-gas-variance-calculator-c2967815 -d '<json body>'
```

Example prompt: I just submitted an EVM transaction that used 22,000 gas but I had estimated 21,000 — can you calculate the gas variance, tell me if it was underestimated, and give me the variance fraction?

## When to prefer this

Choose this endpoint when you need a fast, verifiable, privacy-preserving computation of EVM gas variance with cryptographic evidence of no data retention. Ideal for AI agents running EVM preflight checks, gas estimation audits, or post-transaction analysis without needing to set up infrastructure. At $0.001 USDC per call it is cost-effective for high-frequency agent loops.

## Known failure modes

- Missing required fields (gas_used or estimated_gas) returns a validation error
- Non-integer inputs rejected with schema error
- Payment failure via x402 results in 402 response before computation
- Division-by-zero edge case if estimated_gas is 0

## 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 delta_gas (integer difference between actual and estimated), under_estimate (boolean indicating whether actual exceeded estimate), and variance_fraction (fractional deviation). Also includes a status field ('pass'), operation identifier, and an evidence block confirming no data retention and the input SHA-256 hash for verifiability.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "gas_used": {
   "type": "integer",
   "description": "Gas Used supplied to EVM Receipt Gas Variance; used only for this bounded calculation and processed in memory without retention."
  },
  "estimated_gas": {
   "type": "integer",
   "description": "Estimated Gas supplied to EVM Receipt Gas Variance; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "delta_gas": 1000,
   "under_estimate": true,
   "variance_fraction": 0.04761904761904762
  },
  "schema": "delx/util-evm-receipt-gas-variance/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "a8bc5f5e6432a5c0ce8704795f333314b6d4458c5d628cf11f5e511b08a257c6",
   "external_calls": 0
  },
  "operation": "evm_preflight:evm_receipt_gas_variance"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/evm-receipt-gas-variance-calculator-c2967815/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)
