# AgentTools Wei-ETH Unit Converter

> AgentTools Wei-ETH Unit Converter is a paid API for AI agents from agentstoolshub.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-12).

Converts between Ethereum denomination units (wei, kwei, mwei, gwei, microether, milliether, ether) using exact BigInt arithmetic to avoid floating-point errors.

## Facts

- Endpoint: GET https://agentstoolshub.com/api/v1/crypto/wei-eth-converter?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttools-wei-eth-unit-converter-14068234
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pNXFbS8-uV65AU9Lvx1nK

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-14068234
```

Example prompt: Convert 1500000000000000000 wei to ether for me — I need the exact value with no floating-point rounding errors.

## When to prefer this

Use this endpoint when you need exact, lossless Ethereum unit conversion without floating-point precision errors — especially for large integer values like raw wei amounts. Prefer it over client-side JavaScript Number math (which loses precision above 2^53) or string-based manual computation. Ideal for smart contract integrations, gas fee displays, DeFi UIs, and any context where rounding a wei amount would be incorrect.

## Known failure modes

- Missing required 'value' query parameter returns an error
- Invalid or unsupported unit enum values for 'from' or 'to' return a validation error
- Non-numeric or malformed decimal string for 'value' returns a parsing error
- Payment not provided or invalid x402 payment header returns 402 Payment Required

## 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

Returns the converted numeric value in the requested target unit as a decimal string, computed with exact BigInt arithmetic to eliminate any floating-point precision loss.

## 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-14068234/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentstoolshub.com](https://www.zero.xyz/host/agentstoolshub.com/llms.txt)
