{
"hex": "0xAbCd",
"prefer_0x": true
}
Portable intent card · chain-primitives-local
Hex Canonicalize API for agents
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.
Intent to transaction
One command, attributed.
The source header follows this discovery route through challenge, payment and delivery without exposing the buyer or request body.
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/hex-canonicalize -m POST -H 'x-delx-source: intent-card-hex-canonicalize-api' --max-amount 0.003 -b '{"hex":"0xAbCd","prefer_0x":true}'
{
"intent": "Hex Canonicalize for an agent workflow",
"tool_name": "util_hex_canonicalize",
"price_usdc": "0.003",
"machine_url": "https://commerce.delx.ai/intents/hex-canonicalize-api.json"
}
Portable and inspectable