# Swift Bot Labs EVM Unit Converter

> Swift Bot Labs EVM Unit Converter is a paid API for AI agents from x402-toolbox.swiftbotlab.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-31).

Converts EVM token amounts between wei, gwei, ether, and arbitrary decimal units

## Facts

- Endpoint: GET https://x402-toolbox.swiftbotlab.workers.dev/v1/evm/units?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/swift-bot-labs-evm-unit-converter-b8b16a58
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8pXnPEm1ou0jRrSMPKD3e

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 swift-bot-labs-evm-unit-converter-b8b16a58
```

Example prompt: Convert 1.5 ether to gwei — I need the exact wei and gwei values so I can use them in a smart contract call.

## When to prefer this

Use this endpoint when you need a lightweight, deterministic EVM unit conversion (wei ↔ gwei ↔ ether or custom decimal places) without setting up an account or API key — ideal for AI agents that pay per call with USDC via x402 and need quick on-the-fly blockchain amount normalization.

## Known failure modes

- Missing required 'value' query parameter returns an error
- Invalid unit type for 'from' or 'to' (not wei/gwei/ether/integer decimals) returns a validation error
- Non-numeric value string causes a parsing error
- Payment failure via x402 protocol blocks the request

## How this service works

62 small, deterministic utility APIs (DNS and e-mail checks, web extraction, EVM decoding, x402 checks, IP math, JSON/CSV, hashing, conversions). No account or API key: pay per call in USDC with x402.

## Output

A JSON object with fields: ok (boolean), tool name, and a result object containing the original value, from unit, to unit, and the converted result as a string.

## 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"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "value"
     ],
     "properties": {
      "to": {
       "type": "string"
      },
      "from": {
       "type": "string",
       "description": "wei, gwei, ether, or a number of decimals"
      },
      "value": {
       "type": "string"
      }
     },
     "additionalProperties": false
    },
    "discoverable": {
     "type": "boolean"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tool": "evm-units",
  "result": {
   "to": "gwei",
   "wei": "1500000000000000000",
   "from": "ether",
   "value": "1.5",
   "result": "1500000000"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/swift-bot-labs-evm-unit-converter-b8b16a58/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-toolbox.swiftbotlab.workers.dev](https://www.zero.xyz/host/x402-toolbox.swiftbotlab.workers.dev/llms.txt)
