bech32: { decode: { <Prefix_1>(str,
limit?): Bech32Decoded<Prefix_1>; (str,
limit?): Bech32Decoded<string>; }; decodeToBytes: ((str) => Bech32DecodedWithArray); decodeUnsafe: ((str,
limit?) => void | Bech32Decoded<string>); encode: (<Prefix>(prefix,
words,
limit?) => `${Lowercase<Prefix>}1${string}`); fromWords: ((to) => Uint8Array); fromWordsUnsafe: ((to) => void | Uint8Array); toWords: ((from) => number[]); } Type declaration
decode: {
<Prefix_1>(str, limit?): Bech32Decoded<Prefix_1>;
(str, limit?): Bech32Decoded<string>;
}
- <Prefix_1>(str, limit?): Bech32Decoded<Prefix_1>
Parameters
str: `${Prefix_1}1${string}`
Optional
limit: number | false
- (str, limit?): Bech32Decoded<string>
Parameters
str: string
Optional
limit: number | false
decodeUnsafe: ((str, limit?) => void | Bech32Decoded<string>)
- (str, limit?): void | Bech32Decoded<string>
Parameters
str: string
Optional
limit: number | false
encode: (<Prefix>(prefix, words, limit?) => `${Lowercase<Prefix>}1${string}`)
- <Prefix>(prefix, words, limit?): `${Lowercase<Prefix>}1${string}`
Parameters
prefix: Prefix
words: number[] | Uint8Array
Optional
limit: number | false
Returns `${Lowercase<Prefix>}1${string}`
fromWords: ((to) => Uint8Array)
- (to): Uint8Array
Returns Uint8Array
fromWordsUnsafe: ((to) => void | Uint8Array)
- (to): void | Uint8Array
Returns void | Uint8Array
toWords: ((from) => number[])
- (from): number[]
Returns number[]