# Block Time ETA

> Block Time ETA is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Estimates seconds until a target block height is reached given current block height offset and average block time, returning ETA and remaining block count.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/block-time-eta
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/block-time-eta-1b66b6c5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ayYExveZOi_elol8AsyfR

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 block-time-eta-1b66b6c5 -d '<json body>'
```

Example prompt: I need to wait for 50 more blocks to be confirmed — with an average block time of 12 seconds per block, how many seconds will that take and how many blocks are left?

## When to prefer this

Choose this endpoint when you need a fast, cheap ($0.001 USDC), deterministic estimate of block confirmation time without setting up RPC infrastructure or live chain feeds. Ideal for scheduling agent sleeps, SLA preflight checks, and confirmation-target planning where advisory math is sufficient and no live node access is available.

## Known failure modes

- Missing or non-integer 'blocks' field returns validation error
- Missing or non-integer 'seconds_per_block' field returns validation error
- Zero or negative seconds_per_block may produce undefined or error result
- Payment not included or insufficient USDC via x402 returns 402 Payment Required
- Result is advisory only — actual block times vary; caller assumes all timing risk

## How this service works

Estimate seconds to target block from current height and block time. Call when scheduling waits or SLA checks for confirmation targets. Returns eta_seconds and blocks remaining as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.

## Output

Returns a deterministic JSON object containing eta_seconds (estimated seconds until target block) and blocks_remaining, computed purely from local arithmetic with no RPC or live data calls.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "blocks": {
   "type": "integer",
   "description": "Input field: blocks."
  },
  "seconds_per_block": {
   "type": "integer",
   "description": "Input field: seconds per block."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "blocks": 10,
  "schema": "delx/util-block-time-eta/v1",
  "eta_seconds": 20,
  "seconds_per_block": 2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/block-time-eta-1b66b6c5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
