{"uid":"cap_L7TJTc6M-FYTuBNfonGyX","slug":"delx-commerce-hex-prefix-normalizer-42e191d0","name":"Delx Commerce Hex Prefix Normalizer","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.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_oWSpOZ6e6sJgpR3AqEJ8A","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":"Validates and normalizes a hexadecimal string, ensuring it has the correct prefix (0x or no prefix) and reports its length and validity.","exampleAgentPrompt":"Can you normalize this hex string '0abc' so it has a 0x prefix and tell me if it's valid?","exampleUseCases":[{"title":"Normalize hex before on-chain submission","prompt":"I have this raw hex value 'deadbeef' and I need it formatted with a 0x prefix before I submit it as calldata — can you validate and prefix it for me?"},{"title":"Strip 0x prefix for byte encoding","prompt":"Take this hex string '0x1a2b3c' and give it back without the 0x prefix, and let me know if it's a valid even-length hex value."},{"title":"Validate hex string in smart contract pipeline","prompt":"Can you check whether '0xGG1234' is a valid hex string and whether it has the right prefix format?"}],"resultDescription":"Returns a JSON object containing the normalized hex string, a validity boolean, the prefer_0x flag used, the even-length character count, and the schema identifier 'delx/util-hex-prefix/v1'.","failureModes":["Invalid or non-hex characters in input string causing valid=false","Malformed JSON request body returns 400 error","Payment failure via x402 protocol returns 402 Payment Required","Empty or missing hex field may return validation error"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call utility to normalize or validate hex string prefixes without setting up an account or managing API keys — especially useful in automated agent pipelines dealing with blockchain addresses, calldata, or cryptographic hashes that require consistent 0x prefix formatting.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:40.821Z","isFirstParty":false,"canonicalSlug":"delx-commerce-hex-prefix-normalizer-42e191d0"}