{"uid":"cap_nZLHHW-uwaObtTg7UWSwG","slug":"grokzilla-hex-decode-3a039a66","name":"Grokzilla Hex Decode","description":"Local-only hex decode to utf-8, bytes32, address, and 4-byte selector note. No network fetch (no 4byte.directory).","url":"https://grokzilla.shop/api/skills/hex-decode?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"as":{"type":"array","items":{"enum":["utf8","bytes32","address","selector","uint256","bytes"],"type":"string"},"default":["utf8","bytes32","address","selector"],"maxItems":8,"minItems":1,"uniqueItems":true},"hex":{"type":"string","pattern":"^(?:0x)?[0-9a-fA-F]+$","maxLength":8194,"minLength":1,"description":"Hex string (0x optional), even length, max 4096 bytes"},"request_id":{"type":"string","pattern":"^[A-Za-z0-9._:-]+$","maxLength":64,"minLength":1,"description":"Optional idempotency key. Echoed back; a credit-pack redemption with the same request_id and body is charged once."}}},"responseSchema":{"type":"json","example":{"ok":true,"data":{"hex":"0x48656c6c6f","utf8":"Hello","address":null,"bytes32":"0x00000000000000000000000000000000000000000000000000000048656c6c6f","selector":"0x48656c6c","address_ok":false,"byte_length":5,"selector_note":"4-byte function selector (local only; no 4byte.directory lookup)","bytes32_utf8_stripped":"Hello"},"next":["address_validate","tx_status"],"skill":"hex_decode","charged":true,"service":"hex_decode","sources":[{"url":"hex-decode","name":"local","fetched_at":"2026-10-26T14:00:00Z"}],"summary":"hex-decode: 5 bytes, utf8","version":"1.0.0","warnings":["left-padded to 32 bytes"],"confidence":1,"data_as_of":"2026-10-26T14:00:00Z","generated_at":"2026-10-26T14:00:00Z"}},"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_fv3vCipg2P59ULY9fGI2S","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":"Locally decodes a hex string into UTF-8 text, bytes32, Ethereum address, and 4-byte function selector representations without any network lookups.","exampleAgentPrompt":"Decode this hex string 0x48656c6c6f as utf8, bytes32, and selector so I can see what it says in plain text and what the function selector is.","exampleUseCases":[{"title":"Decode mystery hex from blockchain log","prompt":"I pulled this hex value 0x417574686f72697a6564 from a transaction log — can you decode it as utf8 and bytes32 so I can read it?"},{"title":"Extract function selector from calldata","prompt":"Here's some raw calldata hex: 0xa9059cbb000000000000000000000000... — decode it and pull out the 4-byte function selector for me."},{"title":"Check if hex is a valid Ethereum address","prompt":"I have this hex string 0x000000000000000000000000d8dA6BF26964aF9D7eEd9e03E53415D37aA96045 — decode it and tell me if it's a valid Ethereum address and what the bytes32 representation is."}],"resultDescription":"A JSON object containing the decoded representations: utf8 text, bytes32 left-padded hex, address (or null if invalid), 4-byte selector, byte_length, any warnings (e.g. left-padding notice), confidence score, a summary string, and a selector_note clarifying no external 4byte.directory lookup was performed.","failureModes":["Odd-length hex string returns validation error","Non-hex characters in input return pattern mismatch error","Input exceeds 4096 bytes (8194 hex chars) returns length error","Requesting zero decode targets (empty 'as' array) fails minItems validation","Malformed request_id pattern returns validation error"],"whenToPreferThis":"Choose this endpoint when you need fast, local-only hex decoding without any external network calls — ideal for privacy-sensitive data, high-frequency decoding tasks, or environments where outbound lookups to services like 4byte.directory are undesirable or unavailable. It handles multiple output formats (utf8, bytes32, address, selector) in a single call, making it more efficient than chaining separate tools.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-03T12:47:08.968Z","isFirstParty":false,"canonicalSlug":"grokzilla-hex-decode-3a039a66"}