# Delx Commerce — Blockchain Confirmations Needed Calculator

> Delx Commerce — Blockchain Confirmations Needed 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).

Calculates how many additional block confirmations are needed before a blockchain transaction is considered final, given a target confirmation count and current block heights.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/confirmations-needed?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-blockchain-confirmations-needed-calculator-43ff5958
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cNL71OFBzzBSmZWKWT_hO

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-blockchain-confirmations-needed-calculator-43ff5958 -d '<json body>'
```

Example prompt: Check how many more block confirmations my transaction needs to be final — it was included in block 21500000, the current head block is 21500006, and I need 12 confirmations total.

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-call computation to determine blockchain transaction finality without running a full node. Ideal for agents monitoring settlement status in DeFi, bridge, or exchange workflows where you know the transaction block, current head block, and required confirmation threshold. Prefer this over custom RPC calls when you want verifiable, priced delivery with no signup friction via the x402 protocol on Base or Solana.

## Known failure modes

- Missing required fields (target, tx_block, head_block) result in validation errors
- head_block less than tx_block yields nonsensical or negative remaining values
- Non-integer input for block fields causes schema rejection
- Network or payment (x402) failure returns 402 Payment Required if USDC payment is not processed

## 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 required confirmation threshold has been reached (done: true/false), the target number of confirmations, how many confirmations have occurred so far, and how many more are still needed (remaining). Uses schema identifier 'delx/util-confirmations-needed/v1'.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "target": {
   "type": "integer",
   "description": "Input field: target."
  },
  "tx_block": {
   "type": "integer",
   "description": "Input field: tx block."
  },
  "head_block": {
   "type": "integer",
   "description": "Input field: head block."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "done": false,
  "schema": "delx/util-confirmations-needed/v1",
  "target": 12,
  "remaining": 6,
  "confirmations": 6
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-blockchain-confirmations-needed-calculator-43ff5958/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)
