# AgentsTools Crypto Unit Converter & Address Checksum

> AgentsTools Crypto Unit Converter & Address Checksum is a paid API for AI agents from api.agentstools.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Converts Ethereum token units (wei/gwei/ether or arbitrary decimals), converts between hex and integer representations, and computes or validates EIP-55 checksummed Ethereum addresses.

## Facts

- Endpoint: GET https://api.agentstools.dev/crypto/convert
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentstools-crypto-unit-converter-address-checksum-d68c51b9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_o3UoiJt77gYyJnozmN2qi

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 agentstools-crypto-unit-converter-address-checksum-d68c51b9
```

Example prompt: Convert 1500000000000000000 wei to ether for me, and also give me the EIP-55 checksummed version of the address 0xd8da6bf26964af9d7eed9e03e53415d37aa96045.

## When to prefer this

Use this endpoint when you need lightweight, on-demand Ethereum unit arithmetic (wei↔gwei↔ether or arbitrary decimal token amounts), hex↔integer conversion, or EIP-55 address checksumming without running a local library or full blockchain node. Ideal for AI agents that need quick, trustless utility math for Ethereum data without setting up ethers.js or web3 libraries.

## Known failure modes

- Missing required 'op' query parameter — returns 400 error
- Invalid 'op' enum value (not 'units', 'checksum', or 'hex') — returns 400 error
- Missing 'value' for op=units or op=hex — returns 400 error
- Missing 'address' for op=checksum — returns 400 error
- Invalid Ethereum address format for op=checksum — returns validation error
- Payment not provided or insufficient — returns 402 Payment Required
- Non-numeric value passed where numeric expected — returns 400 error

## How this service works

Convert token units (wei/gwei/ether or arbitrary decimals), between hex and int, and compute/validate an EIP-55 checksummed address.

## Output

Returns the converted value in the target unit (e.g. ether amount from wei input), or for hex conversion returns the integer or hex equivalent, or for checksum operation returns the EIP-55 checksummed address and whether the original address was valid.

## 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": [
      "op"
     ],
     "properties": {
      "op": {
       "enum": [
        "units",
        "checksum",
        "hex"
       ],
       "type": "string"
      },
      "to": {
       "description": "Target unit for op=units; for op=hex use int or hex"
      },
      "from": {
       "description": "Source unit for op=units: wei, gwei, ether, or an integer decimals count"
      },
      "value": {
       "description": "Amount for op=units; integer or 0x hex for op=hex"
      },
      "address": {
       "type": "string",
       "description": "Address to checksum/validate (op=checksum)"
      }
     }
    }
   },
   "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/agentstools-crypto-unit-converter-address-checksum-d68c51b9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
