x402
utility

Canonicalize and validate even-length hex strings with optional 0x prefix — call when normalizing even-length hex for chain tooling. Use for chain input hygiene without live RPC—adjacent to OneSource-class small chain reads, but static/local only so rights and margin stay clear. Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, and no claim of live chain tip, web search, or media generation. Results are advisory; the caller owns authorization and production controls.

post/api/v1/x402/hex-canonicalize

Request

  • Base URL: https://api.delx.ai
  • URL: https://api.delx.ai/api/v1/x402/hex-canonicalize
  • Auth: none declared

Request body

hexstring required

Hex string with or without 0x; must be even-length for valid=true.

prefer_0xboolean

When true, canonicalize with a 0x prefix.

Response

Paid utility result. Downstream tool errors are returned as structured result payloads with HTTP 200 after payment succeeds.

schemastring
validboolean
canonicalstring
byte_lengthinteger
input_lengthinteger

Changes

No recorded changes to this operation across all 1 revision of this API.