{"id":"bech32-decode","version":"1.0.0","description":"Decode Bech32 or Bech32m text into a lowercase HRP, 5-bit data, and the checksum variant.","supported_operations":["decode bech32 or bech32m text into hrp and symbols","tell bech32 apart from bech32m by checksum","lowercase a bech32 string after checking its checksum","read five-bit data from a bech32 string","reject mixed case bech32 text","parse a bech32m checksummed string","split bech32 text on the final separator","recover the hrp from an uppercase bech32 string"],"unsupported_operations":["create a new bech32 checksum","convert 8-bit bytes to 5-bit symbols","enforce segwit program length or witness version","locate which character was mistyped"],"semantics":["Accepts a single-case string of at most 90 characters. All-uppercase and all-lowercase are both accepted. Mixed ASCII case is rejected before the checksum, then the string is returned in lowercase.","The separator is the last character 1. The HRP before it must be 1 to 83 characters of ASCII 33-126. The body must be charset characters qpzry9x8gf2tvdw0s3jn54khce6mua7l with at least 6 checksum characters.","The checksum selects the variant. Polymod residue 1 is bech32 (BIP 173). Polymod residue 0x2bc830a3 is bech32m (BIP 350). Any other residue is a bad checksum. data omits those 6 symbols.","Format failures throw invalid_input. A string longer than 90 characters throws limit_exceeded before charset or checksum work. No witness-version policy is applied.","Disclaimer: format transform only; provides no confidentiality, integrity, or authenticity."],"limits":{"max_text_chars":90},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["text"],"properties":{"text":{"type":"string","minLength":8,"maxLength":90,"pattern":"^[\\x21-\\x7e]+$"}}},"output_schema":{"type":"object","additionalProperties":false,"required":["hrp","data","variant","text"],"properties":{"hrp":{"type":"string","minLength":1,"maxLength":83,"pattern":"^[\\x21-\\x40\\x5b-\\x7e]+$"},"data":{"type":"array","maxItems":82,"items":{"type":"integer","minimum":0,"maximum":31}},"variant":{"type":"string","enum":["bech32","bech32m"]},"text":{"type":"string","minLength":8,"maxLength":90,"pattern":"^[\\x21-\\x40\\x5b-\\x7e]+$"}}},"examples":[{"input":{"text":"A12UEL5L"},"output":{"hrp":"a","data":[],"variant":"bech32","text":"a12uel5l"}},{"input":{"text":"?1v759aa"},"output":{"hrp":"?","data":[],"variant":"bech32m","text":"?1v759aa"}},{"input":{"text":"bc1qs73yx7"},"output":{"hrp":"bc","data":[0],"variant":"bech32m","text":"bc1qs73yx7"}}],"execute_url":"/v1/tools/bech32-decode/versions/1.0.0/execute"}