• Converts a Bech32 or Bech32m encoded address to its corresponding data representation.

    Parameters

    • address: string

      The Bech32 or Bech32m encoded address.

    Returns Bech32Result

    An object containing the version, prefix, and data of the address.

    If the address uses the wrong encoding.