fromBech32
bitcoinjs-lib / address / fromBech32
Function: fromBech32()
fromBech32(
address
):Bech32Result
Defined in: ts_src/address.ts:107
Converts a Bech32 or Bech32m encoded address to its corresponding data representation.
Parameters
address
string
The Bech32 or Bech32m encoded address.
Returns
An object containing the version, prefix, and data of the address.
Throws
If the address uses the wrong encoding.