# Delx EVM Native Balance Budget Check

> Delx EVM Native 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-15).

Checks whether an EVM wallet's native token balance is sufficient to cover a transaction value plus a fee ceiling, returning sufficiency, required amount, available amount, and shortfall.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/evm-native-balance-budget
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-evm-native-balance-budget-check-d4bcf6dd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bsrOuMh2kfEJR5GckKMIf

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-native-balance-budget-check-d4bcf6dd -d '<json body>'
```

Example prompt: Before sending 0.05 ETH on-chain, check whether my wallet balance of 0.1 ETH (100000000000000000 wei) is enough to cover the transfer value of 50000000000000000 wei plus a fee ceiling of 42000000000000000 wei.

## When to prefer this

Use this endpoint when an AI agent needs to gate an EVM transaction on balance sufficiency before submission — especially in automated pipelines where overspending or failed transactions are costly. Prefer this over on-chain balance queries when you already have the balance cached and need fast, in-memory arithmetic without an RPC call. It is ideal for preflight checks in agent workflows that batch multiple on-chain operations.

## Known failure modes

- Missing or malformed wei string inputs may cause validation errors
- Extremely large wei values exceeding maxLength of 8192 characters will be rejected
- Non-numeric strings passed as wei values will result in computation errors
- All three fields are optional but omitting all may return a degenerate or error result

## How this service works

EVM Native Balance Budget: EVM Native Balance Budget checks caller-supplied native balance against value plus fee reserve from bounded caller-supplied values without an external provider. Call EVM Native Balance Budget 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 Native Balance Budget as versioned deterministic…

## Output

Returns a JSON object indicating whether the balance is sufficient (boolean), the total required amount in wei, the available balance in wei, and the shortfall in wei (0 if sufficient). Also includes audit evidence: whether data was retained (always false), an SHA-256 hash of the input, and the number of external calls made (always 0).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "value_wei": {
   "type": "string",
   "maxLength": 8192,
   "description": "Value Wei supplied to EVM Native Balance Budget; used only for this bounded calculation and processed in memory without retention."
  },
  "balance_wei": {
   "type": "string",
   "maxLength": 8192,
   "description": "Balance Wei supplied to EVM Native Balance Budget; used only for this bounded calculation and processed in memory without retention."
  },
  "fee_ceiling_wei": {
   "type": "string",
   "maxLength": 8192,
   "description": "Fee Ceiling Wei supplied to EVM Native 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": "50042000000000000",
   "available_raw": "100000000000000000",
   "shortfall_raw": "0"
  },
  "schema": "delx/util-evm-native-balance-budget/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "215698e92004a17e3f8455c07967d1ebfb7bad3916a0afaafb6a0ce1a1fd5ad4",
   "external_calls": 0
  },
  "operation": "evm_preflight:evm_native_balance_budget"
 }
}
```

## More

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