# Delx Base USDC Decimal Rounding

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

Rounds or formats a numeric amount to the 6-decimal precision required by Base network USDC, and reports whether the value fits within that precision.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/base-usdc-decimal-rounding
- 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/delx-base-usdc-decimal-rounding-4e7f5ff5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_L1AmG2JRsAnr9AaqAaH7N

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

Example prompt: Can you check if the amount '1000' fits within Base USDC's 6-decimal precision and show me the formatted decimal value?

## When to prefer this

Use this endpoint when you need to validate, format, or preflight a numeric amount specifically for Base network USDC transactions, which enforce 6-decimal precision. Prefer this over generic rounding utilities when you need the EVM-specific integer representation alongside the decimal form and an explicit fits_six_decimals flag for safe on-chain payment preparation.

## Known failure modes

- Missing or empty 'amount' field returns a validation error
- Non-numeric string input may cause a parsing failure
- Amount string exceeding 8192 characters is rejected
- Malformed JSON body returns a 400-level error

## How this service works

Base USDC Decimal Rounding: Base USDC Decimal Rounding checks whether a decimal USDC amount fits six fractional digits exactly from bounded caller-supplied values without an external provider. Call Base USDC Decimal Rounding before signing, submitting, replacing, or accepting an EVM/Base transaction assembled from caller-owned data. Returns normalized transaction evidence, calculated budget or shape findings, and a fail-closed preflight status for Base USDC Decimal Rounding as versioned determi…

## Output

Returns a JSON object containing the raw integer representation, the formatted decimal string (e.g. '0.001000'), the number of fractional digits, and a boolean indicating whether the amount fits within USDC's 6-decimal precision. Also includes an audit block with input hash and confirmation that no external calls were made and data was not retained.

## 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-base-usdc-decimal-rounding-4e7f5ff5/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)
