{"uid":"cap_3MqMOe_90934DQg4EYzl_","slug":"delx-commerce-transaction-hash-validator-76a9218f","name":"Delx Commerce — Transaction Hash Validator","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/tx-hash-validate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"tx_hash":{"type":"string","description":"32-byte transaction hash hex (64 hex chars, optional 0x)."}}},"responseSchema":{"type":"json","example":{"valid":true,"schema":"delx/util-tx-hash-validate/v1","normalized":"0xabababababababababababababababababababababababababababababababab","byte_length":32}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-xTCfS1o4lUuHGLof-rW5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","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 blockchain transaction hash, returning its canonical 0x-prefixed form and confirming it is a well-formed 32-byte hex string.","exampleAgentPrompt":"Can you check whether this is a valid transaction hash and give me the normalized version: abababababababababababababababababababababababababababababababababab?","exampleUseCases":[{"title":"Pre-submission tx hash sanity check","prompt":"Before I record this transaction ID in my ledger, can you validate it's a proper 32-byte hash and normalize it with the 0x prefix: 3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2c3d4e?"},{"title":"User-submitted hash verification for a dapp","prompt":"A user pasted this hash into our app — can you verify it's a valid transaction hash before we try to look it up on-chain: 0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef?"},{"title":"Normalize inconsistent hash formats in a dataset","prompt":"I've got this transaction hash that might be missing its 0x prefix — can you validate it and return the canonical normalized form: cafe1234cafe1234cafe1234cafe1234cafe1234cafe1234cafe1234cafe1234?"}],"resultDescription":"Returns a JSON object indicating whether the hash is valid (boolean), the schema identifier ('delx/util-tx-hash-validate/v1'), the normalized 0x-prefixed 64-character hex string, and the byte length (32 if valid).","failureModes":["Input hash is not 64 hex characters — validation fails with valid:false","Non-hex characters in the string cause parsing failure","Empty or missing tx_hash field returns an error","Hash longer or shorter than 32 bytes (64 hex chars) is rejected"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-result check on whether a string is a well-formed 32-byte blockchain transaction hash before using it in downstream operations like on-chain lookups, database storage, or user-facing displays. Prefer it over manual regex checks when you also need canonical normalization (consistent 0x prefix). Cost is $0.003 USDC with no signup required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:57.456Z","isFirstParty":false,"canonicalSlug":"delx-commerce-transaction-hash-validator-76a9218f"}