# Delx Commerce — EVM Token Balance Budget Check

> Delx Commerce — EVM Token Balance Budget 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 raw EVM token balance is sufficient to cover a required raw amount, returning a pass/fail result with shortfall details.

## Facts

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

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

Example prompt: Before submitting this EVM token transfer, check if my available balance of 2500000 raw units is enough to cover the required 1500000 raw units — I need to know if it's sufficient, and if not, by how much I'm short.

## When to prefer this

Use this endpoint when you need a lightweight, privacy-preserving, verifiable computation to check whether an EVM token balance covers a required spend amount before committing to a blockchain transaction. Prefer this over on-chain balance reads when you already have the raw values in memory and need a fast, auditable preflight result with cryptographic evidence of non-retention. It is especially useful for AI agents orchestrating DeFi workflows or on-chain payments that need a trustless sanity check without storing sensitive financial data.

## Known failure modes

- Malformed or non-numeric string values for amount_raw or balance_raw may cause a validation error
- Excessively large strings beyond the 8192 character limit will be rejected
- Missing required fields returns an error response
- Network or payment (x402) issues may prevent the call from completing

## 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 balance is sufficient (boolean), the required and available amounts in raw units, the shortfall (0 if sufficient), a pass/fail status, and a tamper-evident evidence block including input SHA-256 hash and confirmation that no data was 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-commerce-evm-token-balance-budget-check-b0d2e7ea/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)
