# Gwei to Wei Converter

> Gwei 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 a gas price value from gwei to its equivalent wei integer string for use in EVM transaction builders and eth_gasPrice-style fields.

## Facts

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

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

Example prompt: Convert 25 gwei to wei so I can use it in my EVM transaction builder as the gas price field.

## When to prefer this

Choose this endpoint when you already have a gas price expressed in gwei and need a precise, correctly-formatted wei integer string for use in EVM transaction builders, eth_gasPrice RPC fields, or on-chain gas budget checks — especially when you want a deterministic, local-math result with no RPC dependency, no API key, and no live market data.

## Known failure modes

- Missing or non-numeric gwei input returns a validation error
- Negative or zero gwei values may return an error or unexpected result
- Payment failure via x402 prevents the conversion from executing
- Extremely large gwei values may exceed integer precision bounds

## How this service works

Convert gas prices from gwei into wei integer strings for EVM transactions. Call when you hold gas price in gwei and need wei for eth_gasPrice-style fields or tx builders. Returns wei as a decimal integer string plus input gwei 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 JSON object containing the input gwei value echoed back and the equivalent wei expressed as a decimal integer string (e.g. 25 gwei → "25000000000"), enabling direct use in EVM transaction fields without further formatting.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

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

## More

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