Bech32 decode

bech32-decode · version 1.0.0 · Encoding & checksums · free, no key needed

Decode Bech32 or Bech32m text into a lowercase HRP, 5-bit data, and the checksum variant.

Use when you need to: decode bech32 or bech32m text into hrp and symbols · tell bech32 apart from bech32m by checksum · lowercase a bech32 string after checking its checksum.

Decide before calling

Read the versioned contract and the supported scope below. Reuse bech32-decode@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use bech32-decode@1.0.0 for decode bech32 or bech32m text into hrp and symbols. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "text": "A12UEL5L"
}

Response:

{
  "result": {
    "hrp": "a",
    "data": [],
    "variant": "bech32",
    "text": "a12uel5l"
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "bech32-decode",
  "version": "1.0.0",
  "input": {
    "text": "A12UEL5L"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/bech32-decode/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"text":"A12UEL5L"}'

The machine-readable contract is at /v1/tools/bech32-decode/versions/1.0.0.

CLI

node cli.mjs run bech32-decode 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.