{"uid":"cap_Sh1j-0ZDvbzyMVxl_867J","slug":"decode-hex-to-text-and-other-encodings-4ad6c5ca","name":"Decode Hex to Text and Other Encodings","description":"Decode hex to text and other encodings — Genesis402 / UnyKorn Operator Network","url":"https://twin.unykorn.org/decode-hex?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"params":{"type":"object","properties":{"hex":{"type":"string","pattern":"^0x[0-9a-fA-F]*$"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"type":"decode-hex","receipt":{"tx_hash":"0x<64hex>","amount_usd":0.001,"receipt_id":"g402-<16hex>"},"generated_at":"<iso8601>"}},"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_IeVpP9jYtJia4l0sltmSo","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":"Decodes a 0x-prefixed hexadecimal string into its text or other human-readable representation","exampleAgentPrompt":"Can you decode this hex string for me — 0x48656c6c6f20576f726c64 — and tell me what it says in plain text?","exampleUseCases":[{"title":"Decode on-chain hex event log","prompt":"I pulled this hex payload from an Ethereum event log — 0x596f75206172652061207769737065726572 — can you decode it to see what text it contains?"},{"title":"Decode hex-encoded smart contract message","prompt":"There's a hex string in this smart contract call data: 0x4d6f6f6e20697320626561757469 — what does it actually say?"},{"title":"Inspect hex data from API response","prompt":"I got back 0x576f726b20736d61727465722c206e6f7420686172646572 from an API and I have no idea what it means — can you decode it to plain text for me?"}],"resultDescription":"Returns a JSON object with ok status, the decoded result from the hex input, the encoding type identified, a timestamp, and a payment receipt including transaction hash, USD amount paid, and a unique receipt ID.","failureModes":["Invalid hex format (not 0x-prefixed or contains non-hex characters) — returns error","Empty hex string — may return empty result or error","Hex data that does not map to valid UTF-8 text — may return raw bytes or encoding error","Payment failure — x402 micropayment not processed, request rejected","Malformed JSON body — returns 400 or similar error"],"whenToPreferThis":"Choose this endpoint when you have a 0x-prefixed hexadecimal string from an EVM transaction, smart contract, API response, or encoded message and need to decode it to human-readable text or another encoding. Prefer this over manual decoding when you need a pay-per-call, trustless, on-chain-receipted result with no API key setup required. Best suited for blockchain developers, agents parsing EVM logs, or anyone inspecting hex-encoded payloads.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T18:55:42.095Z","isFirstParty":false,"canonicalSlug":"decode-hex-to-text-and-other-encodings-4ad6c5ca"}