# Crypto Units Converter

> Crypto Units Converter is a paid API for AI agents from skinwinking.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-20).

Converts cryptocurrency amounts between units such as wei, gwei, ether, lamports, sol, and generic token base units

## Facts

- Endpoint: GET https://skinwinking.com/api/v1/util/crypto-units?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crypto-units-converter-69e57ff6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8mIZ6FalA0r6HJN-2H9-n

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 crypto-units-converter-69e57ff6
```

Example prompt: Convert 1500000000000000000 wei to ether for me.

## When to prefer this

Use this endpoint when an AI agent needs to convert between low-level blockchain units (wei, gwei, lamports) and human-readable amounts (ether, SOL) or ERC-20 token base units with custom decimals, especially in a pay-per-call context where no local library is available. Prefer this over client-side libraries when operating in environments without access to ethers.js, web3.py, or @solana/web3.js.

## Known failure modes

- Missing required query parameters (value, from, to) returns an error
- Invalid unit name for 'from' or 'to' (not one of wei, gwei, ether, lamports, sol, units) returns an error
- Non-numeric value string causes a parsing error
- Mismatched unit domains (e.g. mixing Ethereum and Solana units without context) may return unexpected results
- Payment failure via x402 protocol blocks the request

## How this service works

50 pay-per-call tools for agents over x402 (USDC on Base, Polygon, Solana): crypto market data, token audits, indicators, swap routing, web extraction, DNS/WHOIS/email checks, FX, weather and AI text/image tools.

## Output

A JSON object containing a 'result' field with the converted amount as a string (e.g. {"result":"1500000000000000000"}), preserving full precision without floating-point 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "value",
      "from",
      "to"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "wei, gwei, ether, lamports, sol, or units"
      },
      "from": {
       "type": "string",
       "description": "wei, gwei, ether, lamports, sol, or units (base units)"
      },
      "value": {
       "type": "string",
       "description": "Amount to convert"
      },
      "decimals": {
       "type": "integer",
       "description": "Token decimals when from/to is units vs token (default 18)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "1500000000000000000"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crypto-units-converter-69e57ff6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from skinwinking.com](https://www.zero.xyz/host/skinwinking.com/llms.txt)
