# Delx Wei Ether Convert

> Delx Wei Ether Convert is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-16).

Converts a numeric amount between wei and ether units using fixed 1e18 scaling, locally and without any RPC call

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/wei-ether-convert
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-wei-ether-convert-bd1a68ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_S971oZOxrNNbsBCdY2gNs

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-wei-ether-convert-bd1a68ab -d '<json body>'
```

Example prompt: Convert 1500000000000000000 wei to ether for me — direction is wei_to_ether.

## When to prefer this

Choose this endpoint when you need a fast, stateless, offline-safe wei↔ether unit conversion without spinning up an RPC connection. It is ideal for input sanitization pipelines, display formatting, and transaction preparation where you only need the fixed 1e18 scaling math and not live chain state. Prefer alternatives if you need live balance lookups, gas estimation, or on-chain data alongside the conversion.

## Known failure modes

- Missing or null amount field returns validation error
- Invalid direction value (not wei_to_ether or ether_to_wei) returns error
- Non-numeric amount causes parsing failure
- Extremely large numbers may hit floating-point precision limits
- Payment failure (insufficient USDC balance or x402 auth issue) blocks execution

## How this service works

Convert between wei and ether using fixed 1e18 scaling without RPC — call when converting wei↔ether with fixed 1e18 scaling. Use for chain input hygiene without live RPC—adjacent to OneSource-class small chain reads, but static/local only so rights and margin stay clear. Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, and no claim of live chain tip, web searc…

## Output

A deterministic JSON object containing the converted numeric value in the target unit (ether or wei), computed locally using fixed 1e18 scaling with no live chain dependency.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "amount": {
   "type": "number",
   "description": "Numeric amount to convert (wei count or ether units depending on direction)."
  },
  "direction": {
   "type": "string",
   "description": "wei_to_ether or ether_to_wei."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "wei": "1000000000000000000",
  "ether": 1,
  "amount": 1000000000000000000,
  "schema": "delx/util-wei-ether-convert/v1",
  "direction": "wei_to_ether"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-wei-ether-convert-bd1a68ab/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)
