# CoCo Crypto Unit Converter (XRP/BTC/ETH)

> CoCo Crypto Unit Converter (XRP/BTC/ETH) is a paid API for AI agents from cocoeatsai.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-19).

Converts between cryptocurrency units (e.g. XRP to drops, BTC to satoshis, ETH to wei) given a value and unit type

## Facts

- Endpoint: GET https://cocoeatsai.com/area4/agent/tools/crypto-units?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coco-crypto-unit-converter-xrp-btc-eth-8cc6d76e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_muVJLrbokq9oc3kUUn-wk

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 coco-crypto-unit-converter-xrp-btc-eth-8cc6d76e
```

Example prompt: How many drops are in 5 XRP? Use the crypto unit converter to give me the exact value in drops.

## When to prefer this

Choose this endpoint when you need to programmatically convert between a cryptocurrency's human-readable unit (XRP, BTC, ETH) and its atomic/base denomination (drops, satoshis, wei) without relying on a full exchange or price-data API. Ideal for blockchain transaction construction, wallet display normalization, or validating user-entered crypto amounts.

## Known failure modes

- Unsupported unit type returns an error or empty response
- Missing required query parameters (unit or value) may cause a 400 error
- Non-numeric value input may produce undefined behavior
- Very large numeric values may cause precision issues

## How this service works

Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.

## Output

A JSON object containing the converted values between the requested cryptocurrency's standard unit and its smallest denomination (e.g. {"xrp": "1", "drops": "1000000"}), showing both the input unit and the base unit equivalent.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ]
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "unit": {
       "type": "string"
      },
      "value": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "const": "json"
    },
    "example": {
     "type": "object",
     "anyOf": [
      {
       "required": [
        "xrp"
       ]
      },
      {
       "required": [
        "btc"
       ]
      },
      {
       "required": [
        "eth"
       ]
      }
     ]
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "xrp": "1",
  "drops": "1000000"
 },
 "exampleNote": "Computed offline with demonstration inputs; time/random values are illustrative."
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coco-crypto-unit-converter-xrp-btc-eth-8cc6d76e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cocoeatsai.com](https://www.zero.xyz/host/cocoeatsai.com/llms.txt)
