Decodificar Bech32
bech32-decodeDecodifica Bech32/Bech32m, detecta la variante y devuelve prefijo y datos. Cuándo: hay que convertir bytes o texto a esta codificación, o desde ella, con exactitud y sin adivinar. No para: codificar bytes hex con un prefijo legible como Bech32 (bech32-encode). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.
EN: Decodes a Bech32 or Bech32m string, detects which checksum variant is valid, and returns the prefix, 5-bit words and 8-bit data when convertible. When: bytes or text have to be converted to or from this encoding exactly, without guessing. Not for: encoding hex bytes with a human-readable prefix as Bech32 (bech32-encode). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bech32 | Yes | Bech32 string (string; required; up to 1023 chars). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hrp | No | ||
| valid | No | ||
| words | No | ||
| variant | No | ||
| data_hex | No |