bech32m: {
    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>
      • Type Parameters

        • Prefix_1 extends string

        Parameters

        • str: `${Prefix_1}1${string}`
        • Optional limit: number | false

        Returns Bech32Decoded<Prefix_1>

      • (str, limit?): Bech32Decoded<string>
      • Parameters

        • str: string
        • Optional limit: number | false

        Returns Bech32Decoded<string>

  • decodeToBytes: ((str) => Bech32DecodedWithArray)
  • decodeUnsafe: ((str, limit?) => void | Bech32Decoded<string>)
      • (str, limit?): void | Bech32Decoded<string>
      • Parameters

        • str: string
        • Optional limit: number | false

        Returns void | Bech32Decoded<string>

  • encode: (<Prefix>(prefix, words, limit?) => `${Lowercase<Prefix>}1${string}`)
      • <Prefix>(prefix, words, limit?): `${Lowercase<Prefix>}1${string}`
      • Type Parameters

        • Prefix extends string

        Parameters

        • prefix: Prefix
        • words: number[] | Uint8Array
        • Optional limit: number | false

        Returns `${Lowercase<Prefix>}1${string}`

  • fromWords: ((to) => Uint8Array)
      • (to): Uint8Array
      • Parameters

        • to: number[]

        Returns Uint8Array

  • fromWordsUnsafe: ((to) => void | Uint8Array)
      • (to): void | Uint8Array
      • Parameters

        • to: number[]

        Returns void | Uint8Array

  • toWords: ((from) => number[])
      • (from): number[]
      • Parameters

        • from: Uint8Array

        Returns number[]

Generated using TypeDoc