{"uid":"cap_VpL8hkBZuvmMk1RwjHd3x","slug":"delx-hex-prefix-e3256894","name":"Delx Hex Prefix","description":"Normalize a hexadecimal string with optional prefix and even-length validation. Call when you need this bounded result before handing data to a downstream tool. Returns deterministic machine-readable JSON for $0.001 USDC via x402 on Base. Honest limit: execution uses only caller-supplied data in memory; it does not call a paid upstream, retain input, search the web, read a live RPC, or invoke a media generator. Results are advisory; the caller owns authorization, budgets, and production control…","url":"https://api.delx.ai/api/v1/x402/hex-prefix?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"hex":{"type":"string","description":"Input field: hex."},"prefer_0x":{"type":"boolean","description":"Input field: prefer 0x."}}},"responseSchema":{"type":"json","example":{"hex":"0x0abc","valid":false,"schema":"delx/util-hex-prefix/v1","prefer_0x":true,"even_length":4}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wVpegXh8Z2zQTNYwpQaqI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Normalizes a hex string by optionally adding or removing the 0x prefix and checking that its length is even","exampleAgentPrompt":"Can you normalize this hex string '0a3f' and make sure it has the 0x prefix and is even-length?","exampleUseCases":[{"title":"Preflight hex before EVM transaction","prompt":"Before I submit this transaction, normalize the hex value 'a3f9c' — make sure it has the 0x prefix and is properly even-length."},{"title":"Strip 0x prefix for raw encoding","prompt":"I have the hex string '0x4b2d' and I need it without the 0x prefix for a raw byte encoding step — can you strip it and confirm it's even-length?"},{"title":"Validate hex format in agent pipeline","prompt":"My pipeline just produced the hex '9f3' — can you check if it's even-length and return a clean normalized version with the 0x prefix?"}],"resultDescription":"Returns deterministic JSON containing the normalized hex string, whether the 0x prefix was added or removed based on the prefer_0x flag, and whether the hex had a valid even-length. The response is machine-readable and stateless.","failureModes":["Input hex contains non-hexadecimal characters — returns error indicating invalid hex","Empty hex string provided — may return error or empty normalized result","Odd-length hex that cannot be auto-padded — returns validation failure indicator","Malformed JSON request body — returns 400-level error","Payment not received or x402 flow incomplete — returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need a cheap, fast, stateless micro-utility to normalize hex strings for agent preflight checks, EVM-compatible encoding, or any workflow that requires consistent 0x-prefixed or unprefixed, even-length hex before passing data to downstream systems. Prefer it over custom code when you want deterministic, auditable hex normalization without maintaining in-house utility logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T07:15:55.926Z","isFirstParty":false,"canonicalSlug":"delx-hex-prefix-e3256894"}