# Delx Commerce — Token Raw-to-Amount Converter

> Delx Commerce — Token Raw-to-Amount Converter is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Converts a raw blockchain token integer value to a human-readable decimal amount given the token's decimal precision.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/token-raw-to-amount?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-token-raw-to-amount-converter-39d67987
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WElmCZr7VkXZsNwlPPPTK

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 delx-commerce-token-raw-to-amount-converter-39d67987 -d '<json body>'
```

Example prompt: Convert the raw token value 1250000 with 6 decimal places to a human-readable amount.

## When to prefer this

Use this endpoint when you need a simple, pay-per-call, no-signup utility to convert raw on-chain token integers to human-readable decimal amounts without building your own conversion logic, especially within an agent workflow that already handles x402 micropayments on Base or Solana.

## Known failure modes

- Missing or invalid 'raw' field returns an error response
- Non-integer or negative 'decimals' value may produce incorrect results
- Malformed JSON request body results in a 400-level error
- Network or payment (x402) failure prevents the computation from completing

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object containing the original raw value, the computed human-readable decimal amount, the decimals used, and a schema identifier (e.g. {raw: '1250000', amount: 1.25, decimals: 6, schema: 'delx/util-token-raw-to-amount/v1'}).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "raw": {
   "type": "string",
   "description": "Input field: raw."
  },
  "decimals": {
   "type": "integer",
   "description": "Input field: decimals."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "raw": "1250000",
  "amount": 1.25,
  "schema": "delx/util-token-raw-to-amount/v1",
  "decimals": 6
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-token-raw-to-amount-converter-39d67987/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
