Skip to main content

toBech32

reddcoinjs-lib v7.0.1-rdd.1Docs


reddcoinjs-lib v7.0.1-rdd.1 / address / toBech32

Function: toBech32()

toBech32(data, version, prefix): string

Converts a buffer to a Bech32 or Bech32m encoded string.

Parameters

data: Uint8Array

The buffer to be encoded.

version: number

The version number to be used in the encoding.

prefix: string

The prefix string to be used in the encoding.

Returns

string

The Bech32 or Bech32m encoded string.

Defined in

ts_src/address.ts:159