# Delx EVM Allowance Budget Check

> Delx EVM Allowance Budget Check 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).

Checks whether an EVM token allowance is sufficient to cover a required spend amount, returning a pass/fail result with shortfall details.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/evm-allowance-budget-check
- 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/delx-evm-allowance-budget-check-d12ae9c1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_b5S4k1Q1_7f_7PbaPYYdX

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-evm-allowance-budget-check-d12ae9c1 -d '<json body>'
```

Example prompt: Before executing the on-chain swap, check if my token allowance of 2000000 raw units is sufficient to cover the required 1500000 raw units — I need to know if there's a shortfall before I proceed.

## When to prefer this

Use this endpoint when an AI agent needs to preflight-check an EVM token allowance before submitting an on-chain transaction or smart contract call. It is purpose-built for autonomous agent workflows where spending raw token units need to be validated against an approved allowance without any external blockchain RPC calls — the computation is done in-memory with no state retention, making it safe for sensitive budget data.

## Known failure modes

- Missing or malformed required_raw or allowance_raw values (non-numeric strings may cause computation failure)
- Values exceeding maxLength of 8192 characters rejected
- Network or service unavailability returning 5xx errors
- Payment required errors (402) if USDC balance insufficient for the $0.001 fee

## How this service works

EVM Allowance Budget Check: EVM Allowance Budget Check checks caller-supplied allowance against a required token amount from bounded caller-supplied values without an external provider. Call EVM Allowance Budget Check before signing, submitting, replacing, or accepting an EVM/Base transaction assembled from caller-owned data. Returns normalized transaction evidence, calculated budget or shape findings, and a fail-closed preflight status for EVM Allowance Budget Check as versioned deterministic…

## Output

Returns a JSON object with a boolean 'sufficient' flag, the required_raw and available_raw amounts, the shortfall_raw (0 if sufficient), a pass/fail status string, the operation name, and evidence metadata including whether inputs were retained and number of external calls made.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "required_raw": {
   "type": "string",
   "maxLength": 8192,
   "description": "Required Raw supplied to EVM Allowance Budget Check; used only for this bounded calculation and processed in memory without retention."
  },
  "allowance_raw": {
   "type": "string",
   "maxLength": 8192,
   "description": "Allowance Raw supplied to EVM Allowance Budget Check; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "sufficient": true,
   "required_raw": "1500000",
   "available_raw": "2000000",
   "shortfall_raw": "0"
  },
  "schema": "delx/util-evm-allowance-budget-check/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "86f8e28708672cfff8511f7fd84c12592b126a4ae90afbc3845c23a473821c16",
   "external_calls": 0
  },
  "operation": "evm_preflight:evm_allowance_budget_check"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-evm-allowance-budget-check-d12ae9c1/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)
