# Wei to Gwei Converter

> Wei to Gwei 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 a wei integer string to a human-readable gwei float value using pure local arithmetic, no RPC call required.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/wei-to-gwei
- 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/wei-to-gwei-converter-bee79be0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_H-bttM8B_MwKtpYEDeim3

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 wei-to-gwei-converter-bee79be0 -d '<json body>'
```

Example prompt: Convert this wei value to gwei so I can show a readable gas price — the wei amount is 1500000000000.

## When to prefer this

Choose this endpoint when you have a raw wei integer string from a smart contract field, transaction receipt, or API response and need to display it as gwei without making an RPC call. Ideal for gas quote rendering, logging, or UI formatting where you want a deterministic, stateless conversion at minimal cost.

## Known failure modes

- Non-numeric or malformed wei string causes a validation error
- Extremely large integer strings beyond float precision may lose accuracy
- Missing 'wei' field in request body returns an error
- Payment failure via x402 results in a 402 response before processing

## How this service works

Convert wei integer strings into gwei for readable gas quotes. Call when you need human-readable gas price from a wei field without an RPC call. Returns gwei float plus original wei string 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

Returns a deterministic JSON object containing the converted gwei float value and the original wei string as provided. No RPC call or live data is involved — purely local arithmetic division (wei / 1e9).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "wei": {
   "type": "string",
   "description": "Input field: wei."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "wei": "1500000000",
  "gwei": 1.5,
  "schema": "delx/util-wei-to-gwei/v1"
 }
}
```

## More

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