# Delx Commerce — Hex to Integer Converter

> Delx Commerce — Hex to Integer 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 hexadecimal string (e.g. '0xff') to its decimal integer equivalent, paid per-call via USDC on Base or Solana using the x402 protocol.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/hex-to-int?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-hex-to-integer-converter-e5082e7f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qycQ4WX4LKva6olaFQjW1

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-hex-to-integer-converter-e5082e7f -d '<json body>'
```

Example prompt: Can you convert the hex value 0xff to its decimal integer for me?

## When to prefer this

Use this endpoint when an AI agent needs a lightweight, pay-per-use hex-to-integer conversion without setting up any account or authentication — ideal for agentic pipelines that need on-demand, verifiable utility calls paid in USDC. Prefer it over implementing local logic when the agent runtime does not have direct access to numeric parsing functions, or when auditability and verifiable delivery of the result is important.

## Known failure modes

- Invalid or malformed hex string input returns an error response
- Missing 'hex' field in request body causes a validation error
- Non-prefixed hex strings (without '0x') may or may not be accepted — behavior unclear from schema
- Network or payment failures via x402 protocol result in no conversion being performed

## 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 original hex input, the decoded decimal integer as a string (e.g. '255'), and a schema identifier ('delx/util-hex-to-int/v1') confirming the response format.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "hex": {
   "type": "string",
   "description": "Input field: hex."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hex": "0xff",
  "value": "255",
  "schema": "delx/util-hex-to-int/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-hex-to-integer-converter-e5082e7f/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)
