# USDC to Raw (6 Decimals) Converter

> USDC to Raw (6 Decimals) Converter is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Converts a human-readable USDC amount into its 6-decimal raw on-chain integer representation (e.g. 1.5 USDC → 1500000).

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/usdc-to-raw
- 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/usdc-to-raw-6-decimals-converter-eb820468
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_u0ddxXFCQbRBDMFfxoHte

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 usdc-to-raw-6-decimals-converter-eb820468 -d '<json body>'
```

Example prompt: Convert 12.50 USDC into its 6-decimal raw on-chain units so I can use it in a USDC transfer transaction on Base.

## When to prefer this

Choose this endpoint when you need a reliable, deterministic conversion of a USDC human-readable amount to its 6-decimal raw on-chain integer — especially useful when building ERC-20 USDC transfer calldata on Base or any EVM chain using USDC at 6 decimals. Prefer over manual math when you want advisory confirmation of the scaling factor without relying on any RPC node, price feed, or external state.

## Known failure modes

- Invalid or missing 'usdc' field returns an error response
- Negative or non-numeric input may cause a validation error
- Extremely large float values may cause precision loss if not handled carefully
- Payment failure via x402 protocol if USDC micropayment not sent correctly

## How this service works

Convert USDC human amounts into 6-decimal raw units used on-chain. Call when quoting or building USDC transfers/payments at 6 decimals. Returns raw units string with decimals=6 as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.

## Output

Returns a deterministic JSON object containing the raw on-chain integer string for the given USDC amount and a decimals field set to 6 (e.g. {"raw": "1500000", "decimals": 6} for 1.5 USDC). No external calls are made; the result is pure local arithmetic.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "usdc": {
   "type": "number",
   "description": "Input field: usdc."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "raw": "1500000",
  "usdc": 1.5,
  "schema": "delx/util-usdc-to-raw/v1",
  "decimals": 6
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/usdc-to-raw-6-decimals-converter-eb820468/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
