{"id":"bech32-encode","version":"1.0.0","description":"Encode lowercase HRP and 5-bit data as Bech32 or Bech32m text using that checksum.","supported_operations":["encode lowercase hrp and five-bit symbols as bech32","bech32m checksum text from an hrp and symbol list","create bech32 text with checksum constant one","create bech32m text with checksum constant 2bc830a3","attach a six character bech32 checksum","hrp and data symbols to lowercase bech32","bech32 encode an empty data part","build a bech32m string from values 0 to 31"],"unsupported_operations":["decode a bech32 string back into symbols","choose bech32 or bech32m from a witness version","correct a damaged checksum","encode bytes with RFC 4648 base32"],"semantics":["HRP is 1 to 83 characters, each ASCII 33-126, and must already be lowercase. A-Z is rejected. The encoder does not case-fold.","data is 5-bit integers 0 through 31. There is no default variant: pass bech32 (checksum constant 1, BIP 173) or bech32m (checksum constant 0x2bc830a3, BIP 350).","Output text is lowercase HRP, separator 1, data characters, and a 6-character checksum. The same HRP and data produce different checksums for the two variants.","The encoded character count is HRP length + data length + 7 and must be at most 90. A longer combination is limit_exceeded before symbols are scanned.","This is a generic codec. It does not apply segwit witness-version policy, program-length rules, or error correction.","Disclaimer: format transform only; provides no confidentiality, integrity, or authenticity."],"limits":{"max_hrp_chars":83,"max_data_items":82,"max_character_count":90},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["hrp","data","variant"],"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"]}}},"output_schema":{"type":"object","additionalProperties":false,"required":["text","variant","checksum"],"properties":{"text":{"type":"string","minLength":8,"maxLength":90,"pattern":"^[\\x21-\\x40\\x5b-\\x7e]+$"},"variant":{"type":"string","enum":["bech32","bech32m"]},"checksum":{"type":"string","minLength":6,"maxLength":6,"pattern":"^[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{6}$"}}},"examples":[{"input":{"hrp":"a","data":[],"variant":"bech32"},"output":{"text":"a12uel5l","variant":"bech32","checksum":"2uel5l"}},{"input":{"hrp":"a","data":[],"variant":"bech32m"},"output":{"text":"a1lqfn3a","variant":"bech32m","checksum":"lqfn3a"}},{"input":{"hrp":"bc","data":[0],"variant":"bech32"},"output":{"text":"bc1q9zpgru","variant":"bech32","checksum":"9zpgru"}}],"execute_url":"/v1/tools/bech32-encode/versions/1.0.0/execute"}