{"uid":"cap_HbwYOFHkdl1RkU6ZRqbqN","slug":"rfc-4648-base32-encoding-9fe32528","name":"RFC 4648 Base32 Encoding","description":"RFC 4648 base32 encoding — Genesis402 / UnyKorn Operator Network","url":"https://twin.unykorn.org/encode-base32?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"params":{"type":"object","properties":{"hex":{"type":"string","pattern":"^0x[0-9a-fA-F]*$"},"text":{"type":"string","maxLength":49152}}}}},"responseSchema":{"type":"json","example":{"ok":true,"type":"encode-base32","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_xIZy-sTAwnVg9jeKbdHyp","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":"Encodes raw text or hex-encoded binary data into RFC 4648 base32 format","exampleAgentPrompt":"Can you base32 encode the text 'Hello, world!' using the RFC 4648 standard?","exampleUseCases":[{"title":"Base32 encode a secret key","prompt":"Take this hex value 0x48656c6c6f576f726c64 and base32 encode it for me so I can use it in a TOTP authenticator setup."},{"title":"Encode plain text for safe transport","prompt":"Base32 encode the text 'my-secret-api-key-value' so I can embed it safely in a URL without worrying about special characters."},{"title":"Serialize binary payload to base32","prompt":"I have this raw hex blob 0xdeadbeefcafebabe — can you convert it to a base32 string following RFC 4648?"}],"resultDescription":"Returns a JSON object with ok=true, the encoding type ('encode-base32'), the base32-encoded output string, and a payment receipt including transaction hash, USD amount charged, and a unique receipt ID. The base32 string conforms to the RFC 4648 standard alphabet.","failureModes":["Invalid hex input (not matching ^0x[0-9a-fA-F]* pattern) returns an error","Text input exceeding 49152 characters is rejected","Payment failure via x402 protocol results in 402 response with no encoding performed","Malformed request body with neither hex nor text field returns an error","Network timeout or service unavailability returns a 5xx error"],"whenToPreferThis":"Choose this endpoint when you need server-side RFC 4648 base32 encoding without running local code, especially in agentic pipelines where you need a verifiable paid receipt proving the operation occurred. Useful when encoding hex-encoded binary blobs or large text strings up to 48 KB. Prefer this over rolling your own encoding when auditability via blockchain transaction receipt is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T18:55:47.546Z","isFirstParty":false,"canonicalSlug":"rfc-4648-base32-encoding-9fe32528"}