{
  "format": "delx/intent-card/v1",
  "id": "hex-canonicalize-api",
  "intent": "Hex Canonicalize for an agent workflow",
  "title": "Hex Canonicalize API for agents",
  "description": "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.",
  "keywords": [
    "Hex Canonicalize API",
    "Hex Canonicalize for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-07",
  "canonical_url": "https://commerce.delx.ai/intents/hex-canonicalize-api",
  "machine_url": "https://commerce.delx.ai/intents/hex-canonicalize-api.json",
  "recommendation": {
    "tool_name": "util_hex_canonicalize",
    "service_name": "Delx Hex Canonicalize",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/hex-canonicalize",
    "price_usdc": "0.003",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "hex": {
          "description": "Hex string with or without 0x; must be even-length for valid=true.",
          "type": "string"
        },
        "prefer_0x": {
          "description": "When true, canonicalize with a 0x prefix.",
          "type": "boolean"
        }
      },
      "required": [
        "hex"
      ],
      "additionalProperties": true
    },
    "example_input": {
      "hex": "0xAbCd",
      "prefer_0x": true
    },
    "example_output": {
      "schema": "delx/util-hex-canonicalize/v1",
      "valid": true,
      "canonical": "0xabcd",
      "byte_length": 2,
      "input_length": 6
    },
    "agentcash": {
      "buy": "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}'",
      "max_amount_usdc": "0.003"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-hex-canonicalize-api"
  },
  "evidence": {
    "paid_openapi": "https://api.delx.ai/openapi.x402.json",
    "governed_portfolio": "https://api.delx.ai/x402-portfolio.json",
    "live_contract": "https://api.delx.ai/api/v1/x402/hex-canonicalize"
  }
}
