{
  "format": "delx/intent-card/v1",
  "id": "hex-prefix-api",
  "intent": "Hex Prefix for an agent workflow",
  "title": "Hex Prefix API for agents",
  "description": "Normalize hex with optional 0x prefix and even-length check — first-party local utility for agent preflight and proven micro-utils expansion. Returns deterministic machine-readable JSON for $0.001 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, no web search, no live RPC, and no mediagen. Results are advisory; the caller owns authorization, budgets, and production controls. Sibling of Delx routes that already converted externally (random, hash, URL, FX families).",
  "keywords": [
    "Hex Prefix API",
    "Hex Prefix for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-07",
  "canonical_url": "https://commerce.delx.ai/intents/hex-prefix-api",
  "machine_url": "https://commerce.delx.ai/intents/hex-prefix-api.json",
  "recommendation": {
    "tool_name": "util_hex_prefix",
    "service_name": "Delx Hex Prefix",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/hex-prefix",
    "price_usdc": "0.001",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "hex": {
          "description": "Input field: hex.",
          "type": "string"
        },
        "prefer_0x": {
          "description": "Input field: prefer 0x.",
          "type": "boolean"
        }
      },
      "required": [
        "hex"
      ],
      "additionalProperties": true
    },
    "example_input": {
      "hex": "abc",
      "prefer_0x": true
    },
    "example_output": {
      "schema": "delx/util-hex-prefix/v1",
      "valid": false,
      "hex": "0x0abc",
      "even_length": 4,
      "prefer_0x": true
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/hex-prefix -m POST -H 'x-delx-source: intent-card-hex-prefix-api' --max-amount 0.001 -b '{\"hex\":\"abc\",\"prefer_0x\":true}'",
      "max_amount_usdc": "0.001"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-hex-prefix-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-prefix"
  }
}
