Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/libauth/src/lib/address/bech32.ts>decodeBech32

An ultra-lightweight, zero-dependency JavaScript library for Bitcoin Cash, Bitcoin, and Bitauth applications.
Latest
variable decodeBech32
import { decodeBech32 } from "https://deno.land/x/libauth@v2.0.0-alpha.9/src/lib/address/bech32.ts";

Decode a Bech32-encoded string into an array of 5-bit integers.

Note, this method always completes. If validBech32 is not valid bech32, an incorrect result will be returned. If validBech32 is potentially malformed, check it with isBech32CharacterSet before calling this method.

type

(validBech32: string) => unknown