# Delx EVM Native Balance Budget Check

> Delx EVM Native 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 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 any shortfall — all computed in-memory without data retention.

## Facts

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

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-77f6ae6f -d '<json body>'
```

Example prompt: Before I send 0.05 ETH (50042000000000000 wei) from a wallet that holds 0.1 ETH (100000000000000000 wei), check if the balance is enough to cover the transaction plus a fee ceiling of 21000000000000 wei — tell me if it's sufficient and what the shortfall is if not.

## When to prefer this

Use this endpoint when you need a stateless, privacy-preserving, verifiable preflight check for EVM native token (ETH, MATIC, etc.) balance sufficiency before executing an on-chain transaction. It is specifically designed for agent workflows that need to guard against failed transactions due to insufficient funds, without making any external blockchain calls or retaining input data. Prefer it over on-chain RPC calls when you already have the balance and want a pure budget computation with an auditable evidence hash.

## Known failure modes

- Missing or malformed wei values (non-numeric strings) may cause computation errors
- Extremely large wei strings exceeding maxLength 8192 will be rejected
- If balance_wei, value_wei, or fee_ceiling_wei are omitted, the result may be indeterminate or default to insufficient
- Network or payment failure via x402 protocol prevents the call from being 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 wallet balance is sufficient (boolean), the total required amount in wei, the available balance in wei, and the shortfall in wei if any. Also includes a verifiable evidence block with input hash, no external calls made, and no data retained.

## 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-77f6ae6f/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)
