# Delx Commerce — Base Gas Price Staleness Check

> Delx Commerce — Base Gas Price Staleness 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 a previously quoted Base network gas price is still fresh (within a maximum age threshold) given two epoch timestamps and a staleness limit.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/base-gas-price-staleness?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-price-staleness-check-9d1e7b1f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IkiIeFah52ItlBnUH1vGa

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-price-staleness-check-9d1e7b1f -d '<json body>'
```

Example prompt: Before submitting this Base transaction, check if the gas price I quoted 60 seconds ago (quoted_at_epoch 1717200000, now_epoch 1717200060) is still fresh with a maximum age of 120 seconds.

## When to prefer this

Use this endpoint when an AI agent or automated DeFi workflow needs a lightweight, verifiable, privacy-preserving staleness check on a Base network gas price quote before committing to a transaction — particularly when no external oracle call is needed and the calculation must be auditable with a retained=false evidence trail.

## Known failure modes

- Missing required fields (now_epoch, quoted_at_epoch, or maximum_age_seconds) result in a validation error
- Negative age (now_epoch earlier than quoted_at_epoch) may produce unexpected results
- Payment failure via x402 protocol prevents call from completing
- Malformed integer types in input fields cause schema 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 indicating whether the gas price quote is fresh (boolean), how many seconds old it is (age_seconds), a pass/fail status, and an evidence block confirming no data was retained and no external calls were made — suitable for EVM preflight decision-making.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "now_epoch": {
   "type": "integer",
   "description": "Now Epoch supplied to Base Gas Price Staleness; used only for this bounded calculation and processed in memory without retention."
  },
  "quoted_at_epoch": {
   "type": "integer",
   "description": "Quoted At Epoch supplied to Base Gas Price Staleness; used only for this bounded calculation and processed in memory without retention."
  },
  "maximum_age_seconds": {
   "type": "integer",
   "description": "Maximum Age Seconds supplied to Base Gas Price Staleness; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "fresh": true,
   "age_seconds": 60
  },
  "schema": "delx/util-base-gas-price-staleness/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "71423649bb9f78764df45bb5a8b4de2c13085d598094d66b005c77f6181eac9f",
   "external_calls": 0
  },
  "operation": "evm_preflight:base_gas_price_staleness"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-base-gas-price-staleness-check-9d1e7b1f/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)
