{"uid":"cap_ZFzLOrZHzbAfvhMXr_jcA","slug":"bech32-bech32m-decode-and-checksum-verifier-4d77d921","name":"Bech32 / Bech32m Decode and Checksum Verifier","description":"Decode and checksum-verify a bech32 or bech32m string — Genesis402 / UnyKorn Operator Network","url":"https://twin.unykorn.org/decode-bech32?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"params":{"type":"object","properties":{"data":{"type":"string"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"type":"decode-bech32","receipt":{"tx_hash":"0x<64hex>","amount_usd":0.002,"receipt_id":"g402-<16hex>"},"generated_at":"<iso8601>"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Mp1KTultKa9bHRGSiKD8O","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Decodes a bech32 or bech32m encoded string and verifies its checksum, returning the human-readable part, data bytes, and encoding variant.","exampleAgentPrompt":"Can you decode and verify the checksum on this bech32 string: bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4?","exampleUseCases":[{"title":"Validate a Bitcoin native segwit address","prompt":"Check if this Bitcoin address is a valid bech32 string with a good checksum: bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq"},{"title":"Verify a Cosmos ecosystem address","prompt":"Decode this cosmos1 bech32 address and tell me if the checksum passes: cosmos1qnk2n4nlkpw9xfqntladh74er2de43e6g3f8xk"},{"title":"Parse encoding type of a taproot address","prompt":"Is this a bech32 or bech32m encoded address, and does the checksum check out? bc1p5cyxnuxmeuwuvkwfem96lqzszd02n6xdcjrs20cac6yqjjwudpxqkedrcr"}],"resultDescription":"Returns a JSON object with ok:true on success, a 'type' field of 'decode-bech32', the decoded payload (human-readable part and data), checksum verification result, and a receipt object containing the transaction hash, USD cost, and a unique receipt ID.","failureModes":["Invalid bech32 checksum — returns ok:false with an error message","Input string is neither bech32 nor bech32m format — parse error returned","Missing or empty 'data' parameter — request validation failure","Network or payment failure via x402 protocol — HTTP 402 or 5xx response","Malformed JSON body — 400 bad request"],"whenToPreferThis":"Choose this endpoint when you need to programmatically decode and checksum-verify a bech32 or bech32m encoded string (such as Bitcoin segwit addresses, taproot addresses, Cosmos addresses, or Lightning invoices) and need a reliable, pay-per-call API without running your own node or library. Prefer it over generic blockchain explorers when you only need the encoding layer decoded, not on-chain data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T18:55:33.242Z","isFirstParty":false,"canonicalSlug":"bech32-bech32m-decode-and-checksum-verifier-4d77d921"}