# Delx Commerce — Base USDC Decimal Rounding

> Delx Commerce — Base USDC Decimal Rounding 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).

Validates and normalizes a USDC amount string to 6-decimal Base USDC precision, returning the rounded value and conformance result.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/base-usdc-decimal-rounding?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-base-usdc-decimal-rounding-82f5901d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AYHyxZTLtfx9z2WoqSz_n

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-base-usdc-decimal-rounding-82f5901d -d '<json body>'
```

Example prompt: Before sending 0.001234567 USDC on Base, check whether that amount fits within 6 decimal places and tell me what the rounded value would be.

## When to prefer this

Use this endpoint when an AI agent needs to preflight-check or normalize a USDC amount before submitting an EVM transaction on Base, especially when deterministic, auditable rounding with verifiable delivery is required. Prefer it over manual calculation when you need a signed evidence record confirming no data retention.

## Known failure modes

- Invalid or non-numeric amount string returns an error
- Amount string exceeding 8192 characters rejected
- Malformed JSON body returns 400
- Payment not received results in 402 response blocking execution

## 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 with the raw integer USDC amount, the formatted decimal string, a boolean indicating whether the amount fits within 6 decimal places, the number of fractional digits, and a verifiable evidence block including input hash and confirmation that no data is retained and no external calls were made.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "amount": {
   "type": "string",
   "maxLength": 8192,
   "description": "Amount supplied to Base USDC Decimal Rounding; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "raw": "1000",
   "amount": "0.001000",
   "fits_six_decimals": true,
   "fractional_digits": 6
  },
  "schema": "delx/util-base-usdc-decimal-rounding/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "7df2f11804e0c841c0289c3480df8b5b401744e62702bb9731b22eaac70967ab",
   "external_calls": 0
  },
  "operation": "evm_preflight:base_usdc_decimal_rounding"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-base-usdc-decimal-rounding-82f5901d/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)
