# Delx EVM Token Balance Budget Check

> Delx EVM Token Balance 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 a raw EVM token balance is sufficient to cover a required raw token amount, returning surplus or shortfall details.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/evm-token-balance-budget
- 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-token-balance-budget-check-8175a3e7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Nnou-hRIjx29kEwRo8Eqw

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-token-balance-budget-check-8175a3e7 -d '<json body>'
```

Example prompt: Before submitting the swap, check if my available token balance of 2500000 raw units is enough to cover the required 1500000 raw units — tell me if it's sufficient and by how much.

## When to prefer this

Use this endpoint when an AI agent needs a deterministic, in-memory preflight check to confirm an EVM token balance covers a required spend before executing an on-chain transaction or API call — especially when privacy matters since inputs are not retained and no external calls are made. Prefer this over custom logic when you need an auditable evidence block with input hashing.

## Known failure modes

- Missing or non-numeric amount_raw/balance_raw causes a validation error
- Strings exceeding 8192 characters are rejected
- Malformed JSON input returns a 400-level error
- Overflow or non-integer string values may cause computation failure

## How this service works

EVM Token Balance Budget: checks caller-supplied raw token balance against transfer amount using only bounded caller-supplied values. Call when you need a bounded evm token balance budget result 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 Token Balance Budget as versioned deterministic JSON. Price: $0.001 USDC…

## Output

Returns a JSON object with a boolean 'sufficient' flag, the required_raw and available_raw amounts as strings, the shortfall_raw (zero if sufficient), a 'pass'/'fail' status, and an evidence block confirming no data is retained and no external calls were made.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "amount_raw": {
   "type": "string",
   "maxLength": 8192,
   "description": "Amount Raw supplied to EVM Token Balance Budget; used only for this bounded calculation and processed in memory without retention."
  },
  "balance_raw": {
   "type": "string",
   "maxLength": 8192,
   "description": "Balance Raw supplied to EVM Token Balance Budget; 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": "2500000",
   "shortfall_raw": "0"
  },
  "schema": "delx/util-evm-token-balance-budget/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "3fbf7d06140147528cc36197d633495c2ce0bec6c1e9bdeada112e634ce3973c",
   "external_calls": 0
  },
  "operation": "evm_preflight:evm_token_balance_budget"
 }
}
```

## More

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