Bech32 validate

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

Check Bech32 or Bech32m text and return a reason, without throwing when the checksum fails.

Use when you need to: check whether bech32 text has a valid checksum · check whether bech32m text has a valid checksum · report a reason when bech32 text is rejected.

Decide before calling

Read the versioned contract and the supported scope below. Reuse bech32-validate@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-validate@1.0.0 for check whether bech32 text has a valid checksum. 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": {
    "valid": true,
    "reason": "ok",
    "variant": "bech32",
    "hrp": "a",
    "data_length": 0
  }
}

How to call it

MCP

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

{
  "id": "bech32-validate",
  "version": "1.0.0",
  "input": {
    "text": "a12uel5l"
  }
}

HTTP (no key)

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

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

CLI

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

Get the client at /clients/cli/.