{
"hex": "0xAbCd",
"prefer_0x": true
}
Local chain primitives · chain-primitives-local
Delx Hex Canonicalize
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.
One-command purchase
Run it from an agent.
No account or API key. AgentCash reads the 402 challenge, pays no more than the declared cap, retries the request and returns the result.
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/hex-canonicalize -m POST -H 'x-delx-source: product-page' --max-amount 0.003 -b '{"hex":"0xAbCd","prefer_0x":true}'
{
"schema": "delx/util-hex-canonicalize/v1",
"valid": true,
"canonical": "0xabcd",
"byte_length": 2,
"input_length": 6
}
Machine-readable evidence