# Bech32 / Bech32m Decode and Checksum Verifier

> Bech32 / Bech32m Decode and Checksum Verifier is a paid API for AI agents from twin.unykorn.org, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-29).

Decodes a bech32 or bech32m encoded string and verifies its checksum, returning the human-readable part, data bytes, and encoding variant.

## Facts

- Endpoint: POST https://twin.unykorn.org/decode-bech32?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bech32-bech32m-decode-and-checksum-verifier-4d77d921
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZFzLOrZHzbAfvhMXr_jcA

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability bech32-bech32m-decode-and-checksum-verifier-4d77d921 -d '<json body>'
```

Example prompt: Can you decode and verify the checksum on this bech32 string: bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Decode and checksum-verify a bech32 or bech32m string — Genesis402 / UnyKorn Operator Network

## Output

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.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "params": {
   "type": "object",
   "properties": {
    "data": {
     "type": "string"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "type": "decode-bech32",
  "receipt": {
   "tx_hash": "0x<64hex>",
   "amount_usd": 0.25,
   "receipt_id": "g402-<16hex>"
  },
  "generated_at": "<iso8601>"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bech32-bech32m-decode-and-checksum-verifier-4d77d921/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from twin.unykorn.org](https://www.zero.xyz/host/twin.unykorn.org/llms.txt)
