# Ether to Wei Converter

> Ether to Wei Converter 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).

Converts an ETH amount (decimal) into its equivalent wei integer string for use in blockchain transaction value fields and allowances.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/eth-to-wei
- 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/ether-to-wei-converter-6099423c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bYoGINtyvwfPJ6E0O2iCu

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 ether-to-wei-converter-6099423c -d '<json body>'
```

Example prompt: Convert 0.75 ETH to wei so I can use the result as the value field in an Ethereum transfer transaction.

## When to prefer this

Use this endpoint when you need a fast, deterministic, offline conversion of an ETH decimal amount to a wei integer string — particularly when preparing transaction value fields, ERC20 allowances, or transfer amounts in a pipeline where no RPC call is needed. Prefer this over manual multiplication when you need a reliable, correctly-scaled integer string with no rounding errors from floating-point math.

## Known failure modes

- Missing or non-numeric 'eth' field returns an error response
- Negative ETH values may produce unexpected results
- Extremely large ETH values may hit floating-point precision limits
- Payment failure over x402 protocol blocks the call

## How this service works

Scale ether amounts into wei integer strings for transfers and tx value. Call when preparing value fields, allowances, or transfers denominated in ETH. Returns wei integer string and eth input as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.

## Output

A deterministic JSON object containing the wei integer string equivalent of the input ETH amount and the original ETH input echoed back — computed locally with no RPC or external data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "eth": {
   "type": "number",
   "description": "Input field: eth."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "eth": 0.05,
  "wei": "50000000000000000",
  "schema": "delx/util-eth-to-wei/v1"
 }
}
```

## More

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