# AgentTools Wei/ETH Unit Converter

> AgentTools Wei/ETH Unit Converter is a paid API for AI agents from agenttools-hub.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Converts Ethereum denominations (wei, kwei, mwei, gwei, microether, milliether, ether) using exact BigInt arithmetic with no floating-point error

## Facts

- Endpoint: GET https://agenttools-hub.vercel.app/api/v1/crypto/wei-eth-converter?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttools-wei-eth-unit-converter-88baf0d6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FvKR6FfAo2a403l6W1mKI

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 agenttools-wei-eth-unit-converter-88baf0d6
```

Example prompt: Can you convert 21000000000000 wei to ether using exact arithmetic — no floating-point rounding?

## When to prefer this

Choose this endpoint when you need exact, lossless Ethereum unit conversion for any combination of wei, kwei, mwei, gwei, microether, milliether, and ether — especially when floating-point precision would introduce errors in smart contract inputs, gas calculations, or financial displays. Prefer it over manual multiplication when the value is a very large integer or a high-precision decimal string.

## Known failure modes

- Missing required 'value' query parameter returns an error
- Non-numeric or malformed decimal string in 'value' causes a parse error
- Invalid 'from' or 'to' enum value (not one of the seven supported units) returns a bad request
- Very large integers beyond BigInt range may fail depending on server implementation

## How this service works

Convert between wei, kwei, mwei, gwei, microether, milliether and ether with exact BigInt arithmetic. Decimal strings of any magnitude convert without floating-point error. Use this when an agent needs to exact Ethereum unit conversion — no float errors.

## Output

A converted numeric value expressed in the target Ethereum denomination, computed with exact BigInt arithmetic so large or fractional amounts carry no floating-point rounding error.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "value"
     ],
     "properties": {
      "to": {
       "enum": [
        "wei",
        "kwei",
        "mwei",
        "gwei",
        "microeth",
        "millieth",
        "eth"
       ],
       "type": "string",
       "description": "To"
      },
      "from": {
       "enum": [
        "wei",
        "kwei",
        "mwei",
        "gwei",
        "microeth",
        "millieth",
        "eth"
       ],
       "type": "string",
       "description": "From"
      },
      "value": {
       "type": "string",
       "description": "Decimal string for exact precision"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agenttools-wei-eth-unit-converter-88baf0d6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agenttools-hub.vercel.app](https://www.zero.xyz/host/agenttools-hub.vercel.app/llms.txt)
