# Delx Commerce — USDC to Raw Amount Converter

> Delx Commerce — USDC to Raw 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 USDC decimal amount into its raw on-chain integer representation (base units with 6 decimals)

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/usdc-to-raw?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-usdc-to-raw-amount-converter-a0c7c1e6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7i4SbmYPNs2JWENDxfhFQ

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-usdc-to-raw-amount-converter-a0c7c1e6 -d '<json body>'
```

Example prompt: Convert 1.5 USDC to its raw on-chain integer representation so I can use it in a blockchain transaction.

## When to prefer this

Use this endpoint when an AI agent or automated workflow needs to convert a human-readable USDC decimal amount into the raw integer base units required for on-chain transactions, smart contract calls, or payment protocol payloads. Prefer this over manual arithmetic when you want a verifiable, schema-stamped conversion without setting up your own utility logic.

## Known failure modes

- Missing or non-numeric 'usdc' field returns validation error
- Negative or zero USDC value may return an error or undefined behavior
- Payment failure via x402 if USDC balance is insufficient
- Network timeout if Base or Solana payment rails are unavailable

## 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 raw integer amount (e.g. '1500000' for 1.5 USDC), the original USDC decimal value, the number of decimals used (6 for USDC), and a schema identifier string ('delx/util-usdc-to-raw/v1').

## 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/delx-commerce-usdc-to-raw-amount-converter-a0c7c1e6/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)
