{"uid":"cap_dDu3nthMqwGKdu89nGtKA","slug":"delx-is-hex-shape-2dbe2a42","name":"Delx Is Hex Shape","description":"Validate even-length hex (optional 0x). Call when you preflight calldata/hash hex before chain tools. Returns valid boolean for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.","url":"https://api.delx.ai/api/v1/x402/is-hex-shape","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"hex":{"type":"string","description":"Input field: hex."}}},"responseSchema":{"type":"json","example":{"hex":"0xffaa","valid":true,"schema":"delx/util-is-hex-shape/v1"}},"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_tRcWKyalNqDEKzLj3Ol-h","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 whether a string is a properly formed even-length hexadecimal value (with optional 0x prefix)","exampleAgentPrompt":"Before sending this calldata to the chain tool, can you check if '0x1a2b3c4d' is a valid even-length hex string?","exampleUseCases":[{"title":"Preflight blockchain calldata validation","prompt":"I'm about to submit calldata '0xdeadbeef00112233' to a smart contract — can you first verify it's properly formatted as valid hex so I don't waste a transaction?"},{"title":"Validate hash before signature check","prompt":"I have this hash string '4e6f7468696e67' from user input and need to make sure it's actually valid hex before passing it to the signing tool — can you check it?"},{"title":"Sanitize hex input from untrusted source","prompt":"A user submitted the value '0xGG1234' as a hex identifier — can you validate whether it's a real even-length hex string before I store it?"}],"resultDescription":"Returns a JSON object containing a boolean 'valid' field indicating whether the input string is a properly formed even-length hexadecimal value, optionally prefixed with '0x'. No additional data is retained or returned.","failureModes":["Missing or empty hex input field returns an error","Odd-length hex strings return valid: false","Non-hex characters (like 'G', 'Z') cause valid: false","Malformed request body returns HTTP 400","Payment not included or rejected returns HTTP 402"],"whenToPreferThis":"Use this endpoint when you need a fast, stateless, no-key preflight check on a hex string before passing it to blockchain or cryptographic tools. It is ideal for input sanitization pipelines where you want to catch malformed calldata or hash strings early, without spinning up any network or chain connection. Prefer this over building custom regex validation when operating in an agentic workflow that already uses x402 micropayment rails.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:02:54.561Z","isFirstParty":false}