# Ethereum Unit Converter (wei / gwei / ether / token)

> Ethereum Unit Converter (wei / gwei / ether / token) is a paid API for AI agents from twin.unykorn.org, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Converts a numeric amount between Ethereum denomination units — wei, gwei, ether, and arbitrary ERC-20 token units with configurable decimals

## Facts

- Endpoint: POST https://twin.unykorn.org/eth-units?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/ethereum-unit-converter-wei-gwei-ether-token-9e9962ba
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wFZ_MHlJGlJJjls2dl95T

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 ethereum-unit-converter-wei-gwei-ether-token-9e9962ba -d '<json body>'
```

Example prompt: Convert 1500000000 wei to ether for me — I need to know what that raw amount works out to in human-readable ETH.

## When to prefer this

Choose this endpoint when you need a quick, paid microservice to convert between Ethereum denominations (wei, gwei, ether) or arbitrary ERC-20 token units without running local BigNumber math. It is especially useful in agent pipelines that already use x402 micropayment infrastructure and need a reliable, hosted conversion step. Prefer it over writing custom BigNumber logic when precision and correctness are critical and a $0.001 per-call cost is acceptable.

## Known failure modes

- Invalid or unrecognized 'from' unit string returns an error response
- Non-numeric or malformed 'amount' string causes a parse failure
- Negative or non-integer 'decimals' value (below 0) is rejected by schema validation
- Missing required params object may return a 400-style error
- Payment failure or insufficient USDC balance blocks the request before conversion runs

## How this service works

Convert between wei, gwei, ether and token units — Genesis402 / UnyKorn Operator Network

## Output

Returns a JSON object indicating success, the conversion type ('eth-units'), a payment receipt with transaction hash, USD amount, and receipt ID, plus a generated_at ISO 8601 timestamp. The primary conversion output is confirmed by the 'ok: true' field along with the converted values embedded in the response.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "params": {
   "type": "object",
   "properties": {
    "from": {
     "type": "string"
    },
    "amount": {
     "type": "string"
    },
    "decimals": {
     "type": "integer",
     "minimum": 0
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "type": "eth-units",
  "receipt": {
   "tx_hash": "0x<64hex>",
   "amount_usd": 0.001,
   "receipt_id": "g402-<16hex>"
  },
  "generated_at": "<iso8601>"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ethereum-unit-converter-wei-gwei-ether-token-9e9962ba/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from twin.unykorn.org](https://www.zero.xyz/host/twin.unykorn.org/llms.txt)
