# Delx Commerce — Base USDC Amount Check

> Delx Commerce — Base USDC Amount Check 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 a raw USDC token amount against an expected value and maximum ceiling for EVM preflight safety on Base network

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/base-usdc-amount-check?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-amount-check-9bc1a719
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7XH5HtgfL-2LQUlCH2aj5

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-amount-check-9bc1a719 -d '<json body>'
```

Example prompt: Before sending the payment, check that the raw USDC amount 1000 matches the expected 1000 and doesn't exceed the maximum of 2000 — I want to make sure it's safe to proceed on Base.

## When to prefer this

Use this endpoint when an AI agent needs to perform a trustless, verifiable preflight check on a Base USDC raw token amount before submitting an EVM transaction — particularly when you need cryptographic proof (SHA-256 of inputs) that the amount was validated in-memory without retention or external calls. Prefer this over custom validation logic when operating in agentic payment pipelines that require auditable, pay-per-result verification.

## Known failure modes

- Non-numeric or malformed raw string values may cause validation failure
- Missing required fields (amount_raw, expected_raw, maximum_raw) return an error
- Amount exceeding maximum returns within_maximum: false and status: fail
- Network or service unavailability returns HTTP 5xx
- Payment (x402) authentication failure prevents the call from executing

## 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 indicating whether the amount_raw matches expected_raw (matched: boolean), whether it is within maximum_raw (within_maximum: boolean), the echoed raw values, an overall pass/fail status, and cryptographic evidence including a SHA-256 hash of the input and a confirmation that no data was retained and no external calls were made.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "amount_raw": {
   "type": "string",
   "maxLength": 8192,
   "description": "Amount Raw supplied to Base USDC Amount Check; used only for this bounded calculation and processed in memory without retention."
  },
  "maximum_raw": {
   "type": "string",
   "maxLength": 8192,
   "description": "Maximum Raw supplied to Base USDC Amount Check; used only for this bounded calculation and processed in memory without retention."
  },
  "expected_raw": {
   "type": "string",
   "maxLength": 8192,
   "description": "Expected Raw supplied to Base USDC Amount Check; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "matched": true,
   "amount_raw": "1000",
   "maximum_raw": "2000",
   "expected_raw": "1000",
   "within_maximum": true
  },
  "schema": "delx/util-base-usdc-amount-check/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "475cde95095ef40136b0768b816113c884ea06f6e34f2f469218879405555c5a",
   "external_calls": 0
  },
  "operation": "evm_preflight:base_usdc_amount_check"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-base-usdc-amount-check-9bc1a719/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)
